From a879f39ea24c89c389d387a130a74645f2a965f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:09:21 +0100 Subject: [PATCH 01/23] feat(automation): decide RPC coverage per service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add rpc-coverage.sh, the shared coverage rule: a package under openshell/v1 binds service S when it calls NewClient(, and method M of S is covered when a file in such a package calls .M(. drift-check.sh uses it for the uncovered RPC list, so methods with the same name in different services are no longer conflated. Signed-off-by: Roland Huß --- hack/automation/drift-check.sh | 30 ++++++++------ hack/automation/rpc-coverage.sh | 70 +++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 13 deletions(-) create mode 100644 hack/automation/rpc-coverage.sh diff --git a/hack/automation/drift-check.sh b/hack/automation/drift-check.sh index e24eebf..21bed9e 100755 --- a/hack/automation/drift-check.sh +++ b/hack/automation/drift-check.sh @@ -11,12 +11,15 @@ # 2. regenerate and build: bindings from core main in a temporary # worktree, then go build ./... && go vet ./... # 3. uncovered RPCs: methods in the regenerated proto/openshellv1 gRPC -# stubs that no SDK code under openshell/v1 calls (fakes and tests -# excluded); informational, it does not fail the check +# stubs that the SDK does not cover, decided per service by +# rpc-coverage.sh (fakes and tests excluded); informational, it does +# not fail the check # Writes a markdown report with the header # "Pin: | Core main: | Result: pass|fail" and one section per # check. Exits 0 when checks 1 and 2 pass, 1 otherwise. set -euo pipefail +# shellcheck source=hack/automation/rpc-coverage.sh +. "$(dirname "${BASH_SOURCE[0]}")/rpc-coverage.sh" core_url=${CORE_URL:-https://github.com/NVIDIA/OpenShell.git} out= @@ -80,19 +83,20 @@ $(fence "$(tail -n 60 <<<"$build")")" fi # 3. RPCs the SDK does not call yet. Full method names look like -# "/openshell.v1.OpenShell/CreateSandbox". +# "/openshell.v1.OpenShell/CreateSandbox"; coverage is decided per service by +# rpc-coverage.sh, the rule rpc-issues.sh uses too. uncovered="" if ls "$work/wt"/proto/openshellv1/*_grpc.pb.go >/dev/null 2>&1; then - methods=$(grep -ho '"/[a-zA-Z0-9_.]*\.[A-Za-z0-9_]*/[A-Za-z0-9_]*"' "$work/wt"/proto/openshellv1/*_grpc.pb.go | - tr -d '"' | sort -u) - for m in $methods; do - service=${m#/}; service=${service%%/*}; service=${service##*.} - method=${m##*/} - if ! grep -rqE "\.${method}\(" openshell/v1 --include='*.go' \ - --exclude='*_test.go' --exclude-dir=fake; then - uncovered+="- ${service}.${method}"$'\n' - fi - done + grep -ho '"/[a-zA-Z0-9_.]*\.[A-Za-z0-9_]*/[A-Za-z0-9_]*"' "$work/wt"/proto/openshellv1/*_grpc.pb.go | + tr -d '"' | sed -E 's#^/([A-Za-z0-9_]+\.)*([A-Za-z0-9_]+)/([A-Za-z0-9_]+)$#\2.\3#' | + sort -u >"$work/keys.txt" + covered=$(rpc_covered_list . "$work/keys.txt") || { + echo "ERROR: cannot determine the RPCs the SDK covers" >&2 + exit 1 + } + while read -r key; do + grep -qxF "$key" <<<"$covered" || uncovered+="- ${key}"$'\n' + done <"$work/keys.txt" fi if [ -z "$uncovered" ]; then uncovered_section="Every RPC in the regenerated stubs is called by the SDK." diff --git a/hack/automation/rpc-coverage.sh b/hack/automation/rpc-coverage.sh new file mode 100644 index 0000000..3aab867 --- /dev/null +++ b/hack/automation/rpc-coverage.sh @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: Apache-2.0 + +# rpc-coverage.sh: the SDK's definition of a covered core RPC. Sourced by +# rpc-issues.sh, drift-check.sh, and rpc-issues-test.sh; defines functions +# only. +# +# Only non-test Go files under /openshell/v1 outside fake/ count. +# A package directory binds service S when one of its files calls +# NewClient( (the generated constructor). Method M of S is covered when a +# file in a package that binds S contains ".M(". Methods with the same name +# in different services are told apart by the binding. +# shellcheck shell=bash + +# _rpc_go_files : NUL-separated SDK Go files that count. +_rpc_go_files() { + local v1="$1/openshell/v1" + [ -d "$v1" ] || { echo "ERROR: $v1 does not exist" >&2; return 1; } + find "$v1" -type f -name '*.go' ! -name '*_test.go' \ + ! -path "$v1/fake/*" ! -path "$v1/*/fake/*" -print0 +} + +# _rpc_bindings : " " lines, sorted; returns 1 +# when no package binds any service. +_rpc_bindings() { + local out + out=$(_rpc_go_files "$1" | + xargs -0 grep -HoE '(^|[^A-Za-z0-9_])New[A-Za-z0-9_]+Client\(' /dev/null | + awk '{ + i = index($0, ":"); path = substr($0, 1, i - 1); m = substr($0, i + 1) + sub(/^.*New/, "", m); sub(/Client\($/, "", m) + dir = path; sub(/\/[^\/]*$/, "", dir) + print dir, m + }' | sort -u) || true + [ -n "$out" ] || { echo "ERROR: no package under $1/openshell/v1 binds a service (no NewClient( call)" >&2; return 1; } + echo "$out" +} + +# rpc_bound_services : the services some package binds, sorted. +rpc_bound_services() { + local b + b=$(_rpc_bindings "$1") || return 1 + awk '{ print $2 }' <<<"$b" | sort -u +} + +# rpc_covered_list : the Service.Method lines of +# keys-file that the SDK covers, in input order. +rpc_covered_list() { + local root=$1 keys=${2:?rpc_covered_list needs a keys file} b calls + [ -f "$keys" ] || { echo "ERROR: $keys: no such file" >&2; return 1; } + b=$(_rpc_bindings "$root") || return 1 + calls=$(_rpc_go_files "$root" | + xargs -0 grep -HoE '\.[A-Za-z0-9_]+\(' /dev/null | + awk '{ + i = index($0, ":"); path = substr($0, 1, i - 1); m = substr($0, i + 2) + sub(/\($/, "", m) + dir = path; sub(/\/[^\/]*$/, "", dir) + print dir, m + }' | sort -u) || true + # Three inputs: bindings, calls, keys. + awk ' + FILENAME == ARGV[1] { bound[$1] = bound[$1] " " $2; next } + FILENAME == ARGV[2] { + if (!($1 in bound)) next + m = split(bound[$1], svc, " ") + for (j = 1; j <= m; j++) covered[svc[j] "." $2] = 1 + next + } + { sub(/\r$/, "") } + $0 in covered { print }' <(printf '%s\n' "$b") <(printf '%s\n' "$calls") "$keys" +} From f2867cdf7d27aab2d48b944087007560249825b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:09:21 +0100 Subject: [PATCH 02/23] test(automation): add the RPC coverage issue test runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the exceptions list and its parser, the planner skeleton, and rpc-issues-test.sh with fixtures for the coverage helper and the exceptions parser. workflows:check runs the tests. Signed-off-by: Roland Huß --- hack/automation/rpc-exceptions.txt | 14 +++ hack/automation/rpc-issue-body.md | 3 + hack/automation/rpc-issues-lib.sh | 37 ++++++++ hack/automation/rpc-issues-test.sh | 90 +++++++++++++++++++ hack/automation/rpc-issues.jq | 39 ++++++++ hack/automation/testdata/rpc-issues/README.md | 12 +++ .../testdata/rpc-issues/coverage/expected.txt | 1 + .../testdata/rpc-issues/coverage/keys.txt | 4 + .../rpc-issues/coverage/openshell/v1/a/a.go | 10 +++ .../coverage/openshell/v1/a/a_test.go | 8 ++ .../rpc-issues/coverage/openshell/v1/b/b.go | 9 ++ .../coverage/openshell/v1/fake/fake.go | 10 +++ .../rpc-issues/exceptions/missing-reason.txt | 3 + .../testdata/rpc-issues/exceptions/valid.txt | 4 + mise.toml | 3 +- 15 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 hack/automation/rpc-exceptions.txt create mode 100644 hack/automation/rpc-issue-body.md create mode 100644 hack/automation/rpc-issues-lib.sh create mode 100755 hack/automation/rpc-issues-test.sh create mode 100644 hack/automation/rpc-issues.jq create mode 100644 hack/automation/testdata/rpc-issues/README.md create mode 100644 hack/automation/testdata/rpc-issues/coverage/expected.txt create mode 100644 hack/automation/testdata/rpc-issues/coverage/keys.txt create mode 100644 hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a.go create mode 100644 hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a_test.go create mode 100644 hack/automation/testdata/rpc-issues/coverage/openshell/v1/b/b.go create mode 100644 hack/automation/testdata/rpc-issues/coverage/openshell/v1/fake/fake.go create mode 100644 hack/automation/testdata/rpc-issues/exceptions/missing-reason.txt create mode 100644 hack/automation/testdata/rpc-issues/exceptions/valid.txt diff --git a/hack/automation/rpc-exceptions.txt b/hack/automation/rpc-exceptions.txt new file mode 100644 index 0000000..d79e965 --- /dev/null +++ b/hack/automation/rpc-exceptions.txt @@ -0,0 +1,14 @@ +# Core RPCs the Go SDK deliberately does not wrap. +# +# rpc-issues.sh opens no coverage issue for an RPC listed here, and closes an +# open one with a comment that quotes the reason. +# +# Format: one entry per line, "Service.Method reason (required)". +# - A line whose first non-blank character is "#" is a comment; blank lines +# are ignored. +# - The first whitespace-separated field is Service.Method, the rest of the +# line is the reason. An entry without a reason, or with a malformed key, +# fails the run. +# +# Example: +# OpenShell.BeginRootfsTarStaging Requires a client that shares the gateway filesystem. diff --git a/hack/automation/rpc-issue-body.md b/hack/automation/rpc-issue-body.md new file mode 100644 index 0000000..1e25675 --- /dev/null +++ b/hack/automation/rpc-issue-body.md @@ -0,0 +1,3 @@ +{{MARKER}} + +{{SUMMARY}} diff --git a/hack/automation/rpc-issues-lib.sh b/hack/automation/rpc-issues-lib.sh new file mode 100644 index 0000000..5f19b9f --- /dev/null +++ b/hack/automation/rpc-issues-lib.sh @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: Apache-2.0 + +# rpc-issues-lib.sh: shared helpers for the RPC coverage issues. Sourced by +# rpc-issues.sh and rpc-issues-test.sh; defines functions only. +# shellcheck shell=bash + +# rpc_parse_exceptions : print the entries of an exceptions list +# (hack/automation/rpc-exceptions.txt) as a JSON array of {key, reason}. +# Lines whose first non-blank character is "#" and blank lines are ignored. +# Each entry is "Service.Method reason"; a malformed key or a missing reason +# prints "ERROR: :: ..." on stderr and returns 1. +rpc_parse_exceptions() { + local file=${1:?rpc_parse_exceptions needs a file} rows + [ -f "$file" ] || { echo "ERROR: $file: no such file" >&2; return 1; } + rows=$(awk -v f="$file" ' + { sub(/\r$/, "") } + /^[[:space:]]*(#|$)/ { next } + { + line = $0 + sub(/^[[:space:]]+/, "", line) + key = line; sub(/[[:space:]].*$/, "", key) + reason = substr(line, length(key) + 1) + sub(/^[[:space:]]+/, "", reason); sub(/[[:space:]]+$/, "", reason) + if (key !~ /^[A-Za-z0-9_]+\.[A-Za-z0-9_]+$/) { + printf "ERROR: %s:%d: \"%s\" is not Service.Method\n", f, NR, key > "/dev/stderr" + bad = 1; exit 1 + } + if (reason == "") { + printf "ERROR: %s:%d: %s has no reason\n", f, NR, key > "/dev/stderr" + bad = 1; exit 1 + } + gsub(/\t/, " ", reason) + print key "\t" reason + } + END { exit bad }' "$file") || return 1 + jq -Rn '[inputs | select(length > 0) | split("\t") | {key: .[0], reason: .[1]}]' <<<"$rows" +} diff --git a/hack/automation/rpc-issues-test.sh b/hack/automation/rpc-issues-test.sh new file mode 100755 index 0000000..7059466 --- /dev/null +++ b/hack/automation/rpc-issues-test.sh @@ -0,0 +1,90 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + +# rpc-issues-test.sh: offline tests for the RPC coverage issues. +# +# Usage: rpc-issues-test.sh [--update] +# +# Run from the root of an sdk-go clone. Runs the planner (rpc-issues.jq) on +# every hack/automation/testdata/rpc-issues/planner//input.json and +# compares the result with expected.json, checks the coverage helper on the +# miniature SDK tree in coverage/, and the exceptions parser on exceptions/. +# --update rewrites the planner expected.json files instead of comparing. +# Exits 1 on any mismatch. +set -euo pipefail + +here=hack/automation +data=$here/testdata/rpc-issues +# shellcheck source=hack/automation/rpc-issues-lib.sh +. "$here/rpc-issues-lib.sh" +# shellcheck source=hack/automation/rpc-coverage.sh +. "$here/rpc-coverage.sh" + +die() { echo "ERROR: $*" >&2; exit 1; } + +update=0 +while [ $# -gt 0 ]; do + case $1 in + --update) update=1; shift ;; + *) echo "usage: $0 [--update]" >&2; exit 2 ;; + esac +done +[ "$(git rev-parse --show-toplevel)" = "$(pwd -P)" ] || die "run this from the root of the sdk-go clone" + +work=$(mktemp -d) +trap 'rm -rf "$work"' EXIT +failed=0 +fail() { echo "FAIL $1"; failed=1; } + +# Planner cases. +for dir in "$data"/planner/*/; do + [ -d "$dir" ] || continue + name=$(basename "$dir") + [ -f "$dir/input.json" ] || { fail "$name: no input.json"; continue; } + if ! jq -S -f "$here/rpc-issues.jq" --rawfile template "$here/rpc-issue-body.md" \ + "$dir/input.json" >"$work/actual.json" 2>"$work/err"; then + fail "$name: planner failed: $(cat "$work/err")" + continue + fi + if [ "$update" -eq 1 ]; then + cp "$work/actual.json" "$dir/expected.json" + [ -f "$dir/expected.json.license" ] || cp "$dir/input.json.license" "$dir/expected.json.license" 2>/dev/null || true + echo "updated $name" + continue + fi + [ -f "$dir/expected.json" ] || { fail "$name: no expected.json (run with --update)"; continue; } + jq -S . "$dir/expected.json" >"$work/expected.json" + if diff -u "$work/expected.json" "$work/actual.json" >"$work/diff"; then + echo "ok $name" + else + fail "$name" + cat "$work/diff" + fi +done + +# Coverage helper. +if rpc_covered_list "$data/coverage" "$data/coverage/keys.txt" >"$work/covered.txt" 2>"$work/err" && + diff -u "$data/coverage/expected.txt" "$work/covered.txt"; then + echo "ok coverage" +else + fail "coverage $(cat "$work/err")" +fi + +# Exceptions parser. +if rpc_parse_exceptions "$data/exceptions/valid.txt" >"$work/exc.json" 2>"$work/err" && + jq -e 'type == "array" and length > 0 and all(.[]; (.key | test("^[A-Za-z0-9_]+\\.[A-Za-z0-9_]+$")) and (.reason | length > 0))' \ + "$work/exc.json" >/dev/null; then + echo "ok exceptions/valid" +else + fail "exceptions/valid $(cat "$work/err")" +fi +if rpc_parse_exceptions "$data/exceptions/missing-reason.txt" >/dev/null 2>"$work/err"; then + fail "exceptions/missing-reason: parsed without error" +elif grep -q '^ERROR: .*missing-reason.txt:3: ' "$work/err"; then + echo "ok exceptions/missing-reason" +else + fail "exceptions/missing-reason: unexpected error: $(cat "$work/err")" +fi + +[ "$failed" -eq 0 ] || { echo "rpc-issues tests failed" >&2; exit 1; } +echo "rpc-issues tests passed" diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq new file mode 100644 index 0000000..048c1cb --- /dev/null +++ b/hack/automation/rpc-issues.jq @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# rpc-issues.jq: the planner for RPC coverage issues. Pure: one input +# document in, one action list out; rpc-issues.sh gathers the input and +# applies the actions, rpc-issues-test.sh runs this on fixtures. +# +# jq -f rpc-issues.jq --rawfile template rpc-issue-body.md input.json +# +# Input (see specs data-model): repo, core_repo, tag, max_new, rpcs (one row +# per method of every non-google proto file), services_bound, covered, built, +# generated_files, bump_branch_exists, exceptions, issues. + +# Per-RPC flags. +def rpc_rows: + . as $in + | ([$in.rpcs[] | select(.auth_mode != null) | .file] | unique) as $served + | ([$in.exceptions[]? | {key: .key, value: .reason}] | from_entries) as $exc + | ([$in.covered[]? | {key: ., value: true}] | from_entries) as $cov + | ([$in.built[]? | {key: ., value: true}] | from_entries) as $built + | ($in.generated_files // []) as $gen + | [$in.rpcs[] + | (.service + "." + .method) as $key + | . + { + key: $key, + user_facing: ((.file | IN($served[])) and (.auth_mode == null or .auth_mode == "bearer" or .auth_mode == "dual")), + unannotated: (.auth_mode == null), + excepted: ($exc | has($key)), + exception_reason: $exc[$key], + is_covered: ($cov | has($key)), + buildability: ( + if $built | has($key) then "built" + elif (.file | IN($gen[]) | not) then "needs-bindings" + elif $in.bump_branch_exists then "bump-branch" + else "bump-pending" end) + } + | .applicable = (.user_facing and (.is_covered | not) and (.excepted | not))]; + +rpc_rows as $rows +| [] diff --git a/hack/automation/testdata/rpc-issues/README.md b/hack/automation/testdata/rpc-issues/README.md new file mode 100644 index 0000000..44d69ab --- /dev/null +++ b/hack/automation/testdata/rpc-issues/README.md @@ -0,0 +1,12 @@ +# RPC coverage issue fixtures + +`hack/automation/rpc-issues-test.sh` runs every case below; `mise run workflows:check` runs it in CI. + +- `planner//input.json` is a planner input document (see the header of `hack/automation/rpc-issues.jq`), and `expected.json` is the action list (or error object) the planner must return for it. + `rpc-issues-test.sh --update` rewrites every `expected.json` from the current planner; review the diff before committing. + `backfill-v0.1.9/input.json` was produced by `rpc-issues.sh --tag v0.1.9 --dry-run --dump-input `; the other cases are small hand-written documents. +- `coverage/` is a miniature SDK tree for the coverage helper `hack/automation/rpc-coverage.sh`: `rpc_covered_list coverage keys.txt` must print `expected.txt`. + Its Go files sit under `testdata/`, so `go build` ignores them, but `gofmt` and the SPDX check still read them. +- `exceptions/` holds exceptions lists for `rpc_parse_exceptions` in `hack/automation/rpc-issues-lib.sh`: `valid.txt` must parse, `missing-reason.txt` must fail with the line number. + +Every `.json` file has a `.json.license` sidecar for the SPDX check. diff --git a/hack/automation/testdata/rpc-issues/coverage/expected.txt b/hack/automation/testdata/rpc-issues/coverage/expected.txt new file mode 100644 index 0000000..2289e10 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/expected.txt @@ -0,0 +1 @@ +OpenShell.Watch diff --git a/hack/automation/testdata/rpc-issues/coverage/keys.txt b/hack/automation/testdata/rpc-issues/coverage/keys.txt new file mode 100644 index 0000000..964f339 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/keys.txt @@ -0,0 +1,4 @@ +OpenShell.Watch +OpenShell.Snapshot +ServiceDiscovery.Watch +OpenShell.Hidden diff --git a/hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a.go b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a.go new file mode 100644 index 0000000..5b46450 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a.go @@ -0,0 +1,10 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +// Package a binds the OpenShell service and calls Watch. +package a + +func watch(conn any) { + client := pb.NewOpenShellClient(conn) + client.Watch(nil) +} diff --git a/hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a_test.go b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a_test.go new file mode 100644 index 0000000..ff22269 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/a/a_test.go @@ -0,0 +1,8 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package a + +func hidden(client any) { + client.Hidden(nil) +} diff --git a/hack/automation/testdata/rpc-issues/coverage/openshell/v1/b/b.go b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/b/b.go new file mode 100644 index 0000000..ecfaf3b --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/b/b.go @@ -0,0 +1,9 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +// Package b binds no service, so its Snapshot call covers nothing. +package b + +func snapshot(client any) { + client.Snapshot(nil) +} diff --git a/hack/automation/testdata/rpc-issues/coverage/openshell/v1/fake/fake.go b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/fake/fake.go new file mode 100644 index 0000000..1d249b0 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/fake/fake.go @@ -0,0 +1,10 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +// Package fake is excluded from coverage even though it binds OpenShell. +package fake + +func hidden(conn any) { + client := pb.NewOpenShellClient(conn) + client.Hidden(nil) +} diff --git a/hack/automation/testdata/rpc-issues/exceptions/missing-reason.txt b/hack/automation/testdata/rpc-issues/exceptions/missing-reason.txt new file mode 100644 index 0000000..c6a9ad8 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/exceptions/missing-reason.txt @@ -0,0 +1,3 @@ +# The entry on line 3 has no reason. +OpenShell.ForwardTcp The TCP client already forwards ports over SSH. +OpenShell.ExecSandboxInteractive diff --git a/hack/automation/testdata/rpc-issues/exceptions/valid.txt b/hack/automation/testdata/rpc-issues/exceptions/valid.txt new file mode 100644 index 0000000..ad5bcea --- /dev/null +++ b/hack/automation/testdata/rpc-issues/exceptions/valid.txt @@ -0,0 +1,4 @@ +# Exceptions used by rpc-issues-test.sh. + +OpenShell.ForwardTcp The TCP client already forwards ports over SSH. + ServiceDiscovery.WatchServiceRoutes Only ingress controllers consume routes. diff --git a/mise.toml b/mise.toml index adc2523..72a37cf 100644 --- a/mise.toml +++ b/mise.toml @@ -227,11 +227,12 @@ echo "Proto check passed: generated files match core $(yq -r '.inputs[0].tag' bu """ [tasks."workflows:check"] -description = "Lint GitHub workflows (actionlint with shellcheck, zizmor) and the hack/ scripts (shellcheck)" +description = "Lint GitHub workflows (actionlint with shellcheck, zizmor) and the hack/ scripts (shellcheck), run the RPC coverage issue tests" run = [ "actionlint", "zizmor --offline --min-severity medium .github", "shellcheck -x -S warning hack/automation/*.sh hack/migration/*.sh", + "hack/automation/rpc-issues-test.sh", ] [tasks."docs:build"] From 23d3583891f33a4ab9fc7da9139846198d0cee03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:10:49 +0100 Subject: [PATCH 03/23] feat(automation): plan RPC coverage issues per service and method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The planner selects user-facing RPCs (bearer, dual, or unannotated in a gateway-served proto file), groups them per service when the SDK covers none of the service's methods and per method otherwise, keeps methods with the issue whose marker lists them, and plans one open action per new group with a hidden marker, title, and readiness label. More than max_new opens is an error. Signed-off-by: Roland Huß --- hack/automation/rpc-issues.jq | 187 +++++++++++++++++++++++++++++++++- 1 file changed, 182 insertions(+), 5 deletions(-) diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index 048c1cb..e8d1885 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -5,10 +5,25 @@ # applies the actions, rpc-issues-test.sh runs this on fixtures. # # jq -f rpc-issues.jq --rawfile template rpc-issue-body.md input.json +# jq -f rpc-issues.jq --rawfile template rpc-issue-body.md --arg mode needs-actors input.json # -# Input (see specs data-model): repo, core_repo, tag, max_new, rpcs (one row -# per method of every non-google proto file), services_bound, covered, built, -# generated_files, bump_branch_exists, exceptions, issues. +# Input: repo, core_repo, tag, max_new, rpcs (one row per method of every +# non-google proto file), services_bound, covered, built, generated_files, +# bump_branch_exists, exceptions, issues (number, state, title, body, labels, +# last_actor_is_bot, last_event). +# +# Output: actions sorted by group id, each one of +# {action: "open", group, title, body, labels} +# {action: "update", number, group, body?, add_labels?, remove_labels?} +# {action: "close", number, group, comment} +# {action: "reopen", number, group, body, comment, add_labels?, remove_labels?} +# or {error: "too-many-new", planned: [titles]} when more than max_new issues +# would be opened. With mode needs-actors, the sorted numbers of the issues +# whose last close or reopen actor the plan depends on. + +def base_labels: ["help wanted", "rpc-coverage"]; +def readiness_labels: ["rpc:blocked", "rpc:ready"]; +def ident: test("^[A-Za-z0-9_]+$"); # Per-RPC flags. def rpc_rows: @@ -35,5 +50,167 @@ def rpc_rows: } | .applicable = (.user_facing and (.is_covered | not) and (.excepted | not))]; -rpc_rows as $rows -| [] +# Marker on the first body line: +# +# +# Returns null when the line is not a valid marker. +def parse_marker: + ((. // "") | split("\n")[0] | sub("\r$"; "")) as $line + | [$line | capture("^$")] | .[0] + | if . == null then null else + ([.f | splits(" +") | select(length > 0) | capture("^(?[a-z-]+)=(?.*)$") | {key: .k, value: .v}] + | from_entries) as $kv + | ($kv.service // "") as $s + | (($kv.methods // "") | split(",") | map(select(length > 0 and ident)) | unique) as $ms + | if $kv.kind == "service" and ($s | ident) then + {kind: "service", service: $s, id: ("service:" + $s), first_seen: $kv["first-seen"], methods: $ms} + elif $kv.kind == "method" and ($s | ident) and (($kv.method // "") | ident) then + {kind: "method", service: $s, method: $kv.method, id: ("method:" + $s + "." + $kv.method), + first_seen: $kv["first-seen"], methods: [$kv.method]} + else null end + end; + +def render_marker: + if .kind == "service" then + "" + else + "" + end; + +def title: + if .kind == "service" then "feat(sdk): wrap the \(.service) service (core \(.first_seen))" + else "feat(sdk): wrap \(.service).\(.method) (core \(.first_seen))" end; + +# "open", "bot-closed", or "human-closed". An unknown closer (not fetched) +# counts as a human, so nothing is reopened or recreated on missing data. +def issue_status: + if .state == "OPEN" then "open" + elif .last_actor_is_bot == true then "bot-closed" + else "human-closed" end; + +# Replace {{KEY}} placeholders of a template with the values of an object. +def fill($vals): + reduce ($vals | to_entries[]) as $e (.; split("{{" + $e.key + "}}") | join($e.value)); + +def normalize: gsub("\r"; "") | sub("\\s+$"; ""); + +# Group buildability: the least ready state of its methods. +def group_buildability: + map(.buildability) as $b + | if all($b[]; . == "built") then "built" + elif any($b[]; . == "needs-bindings") then "needs-bindings" + elif any($b[]; . == "bump-pending") then "bump-pending" + else "bump-branch" end; + +def readiness: if group_buildability == "built" then "rpc:ready" else "rpc:blocked" end; + +# Body of a group; $ctx carries the input document and the group's rows. +def render_body($ctx): + $ctx.group as $g + | ($g + {methods: [$ctx.rows[].method]}) as $m + | $ctx.template + | fill({ + MARKER: ($m | render_marker), + SUMMARY: ( + if $g.kind == "service" then + "Core `\($ctx.tag)` has \($ctx.rows | length) user-facing method(s) in the `\($g.service)` service that the Go SDK does not wrap yet." + else + "Core `\($ctx.tag)` has `\($g.service).\($g.method)`, a user-facing RPC the Go SDK does not wrap yet." + end) + }) + | normalize; + +def plan: + . as $in + | ($ARGS.named.template // error("pass the body template with --rawfile template rpc-issue-body.md")) as $template + | rpc_rows as $rows + | ([$rows[] | {key: .key, value: .}] | from_entries) as $by_key + | ($in.services_bound // []) as $bound + + # Existing issues with a valid marker; one per identity: the lowest open + # number, else the lowest number. + | ([$in.issues[]? + | . + {marker: (.body | parse_marker), labels: (.labels // [])} + | select(.marker != null) + | .status = issue_status] + | group_by(.marker.id) + | map(sort_by((if .state == "OPEN" then 0 else 1 end), .number) | .[0])) as $issues + | ([$issues[] | {key: .marker.id, value: .}] | from_entries) as $by_id + + # Rule 0: open and bot-closed issues own the methods their marker lists + # (open issues first, then by number); human-closed issues suppress. + | (reduce ($issues | map(select(.status != "human-closed")) + | sort_by((if .status == "open" then 0 else 1 end), .number))[] as $i + ({}; reduce ($i.marker.methods[] | $i.marker.service + "." + .) as $k + (.; if has($k) then . else .[$k] = $i.marker.id end))) as $owner + | ([$issues[] | select(.status == "human-closed")]) as $human_closed + | def suppressed($r): + any($human_closed[]; (.marker.kind == "service" and .marker.service == $r.service) + or .marker.id == ("method:" + $r.key)); + ([$rows[] | select(.applicable)]) as $applicable + | ([$applicable[] | select(.key as $k | $owner | has($k) | not) | select(suppressed(.) | not)]) as $unowned + + # Rules 1 to 3 for unowned applicable methods, per service. + | ([$unowned | group_by(.service)[] + | .[0].service as $s + | ($by_id["service:" + $s]) as $si + | if $si != null and ($si.status == "open" or ($si.status == "bot-closed" and ($s | IN($bound[]) | not))) then + .[] | {key: .key, value: ("service:" + $s)} + elif $si == null + and (any($rows[]; .service == $s and .user_facing and .is_covered) | not) + and (any($issues[]; .marker.kind == "method" and .marker.service == $s and .status != "human-closed") | not) then + .[] | {key: .key, value: ("service:" + $s)} + else + .[] | {key: .key, value: ("method:" + .key)} + end] | from_entries) as $joined + + # Groups: every open or bot-closed issue, plus new groups. + | ([$applicable[] | select($owner[.key] != null or $joined[.key] != null) + | {id: ($owner[.key] // $joined[.key]), key: .key}]) as $assigned + | ([$issues[] | select(.status != "human-closed") | .marker.id] + + [$assigned[].id] | unique) as $group_ids + | [$group_ids[] + | . as $id + | $by_id[$id] as $issue + | ([$assigned[] | select(.id == $id) | $by_key[.key]] | sort_by(.method)) as $grows + | (if $issue != null then $issue.marker + elif ($id | startswith("service:")) then {kind: "service", service: ($id | ltrimstr("service:"))} + else ($id | ltrimstr("method:") | split(".")) as $p | {kind: "method", service: $p[0], method: $p[1]} + end) as $m + | ($m + {id: $id, first_seen: ($m.first_seen // $in.tag)}) as $group + | {group: $group, issue: $issue, rows: $grows} + | . + {ctx: {template: $template, tag: $in.tag, repo: $in.repo, core_repo: $in.core_repo, + group: $group, rows: $grows}}] + | [.[] + | . as $g + | if $g.issue == null then + if ($g.rows | length) > 0 then + {action: "open", group: $g.group.id, title: ($g.group | title), + body: render_body($g.ctx), + labels: (base_labels + [$g.rows | readiness] | sort)} + else empty end + else empty end] + | sort_by(.group, .action); + +if ($ARGS.named.mode // "plan") == "needs-actors" then + # Closed issues whose identity has applicable methods, and open issues the + # plan would close: their last close or reopen actor decides the plan. + . as $in + | rpc_rows as $rows + | ([$rows[] | select(.applicable) | .key]) as $app + | (plan) as $actions + | ([$in.issues[]? | . + {marker: (.body | parse_marker)} | select(.marker != null) + | select(.state != "OPEN") + | select(.marker as $mk + | any($mk.methods[]; ($mk.service + "." + .) | IN($app[])) + or ($mk.kind == "service" and any($app[]; startswith($mk.service + ".")))) + | .number] + + [if ($actions | type) == "array" then $actions[] | select(.action == "close") | .number else empty end]) + | unique +else + plan as $actions + | ([$actions[] | select(.action == "open")]) as $opens + | if ($opens | length) > (.max_new // 10) then + {error: "too-many-new", planned: [$opens[].title]} + else $actions end +end From 82d62df77e1b8cbfc7fa92939470551fe18d9ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:14:40 +0100 Subject: [PATCH 04/23] fix(automation): parse service names starting with New, fetch actors per service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The coverage helper stripped every "New" up to the last one, so NewNewsFeedClient bound "sFeed". The planner's needs-actors mode now lists every closed issue of a service with applicable methods, since grouping rule 2 depends on whether closed method issues of the service were closed by the automation. Signed-off-by: Roland Huß --- hack/automation/rpc-coverage.sh | 2 +- hack/automation/rpc-issues.jq | 11 +++++------ .../testdata/rpc-issues/coverage/expected.txt | 1 + hack/automation/testdata/rpc-issues/coverage/keys.txt | 1 + .../testdata/rpc-issues/coverage/openshell/v1/c/c.go | 10 ++++++++++ 5 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 hack/automation/testdata/rpc-issues/coverage/openshell/v1/c/c.go diff --git a/hack/automation/rpc-coverage.sh b/hack/automation/rpc-coverage.sh index 3aab867..b68db89 100644 --- a/hack/automation/rpc-coverage.sh +++ b/hack/automation/rpc-coverage.sh @@ -27,7 +27,7 @@ _rpc_bindings() { xargs -0 grep -HoE '(^|[^A-Za-z0-9_])New[A-Za-z0-9_]+Client\(' /dev/null | awk '{ i = index($0, ":"); path = substr($0, 1, i - 1); m = substr($0, i + 1) - sub(/^.*New/, "", m); sub(/Client\($/, "", m) + sub(/^[^A-Za-z0-9_]?New/, "", m); sub(/Client\($/, "", m) dir = path; sub(/\/[^\/]*$/, "", dir) print dir, m }' | sort -u) || true diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index e8d1885..b9e32b1 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -193,17 +193,16 @@ def plan: | sort_by(.group, .action); if ($ARGS.named.mode // "plan") == "needs-actors" then - # Closed issues whose identity has applicable methods, and open issues the - # plan would close: their last close or reopen actor decides the plan. + # Closed issues of every service with applicable methods (their closer + # decides ownership, suppression, and grouping rules 1 and 2), and open + # issues the plan would close (a human reopen blocks a close as covered). . as $in | rpc_rows as $rows - | ([$rows[] | select(.applicable) | .key]) as $app + | ([$rows[] | select(.applicable) | .service] | unique) as $app_services | (plan) as $actions | ([$in.issues[]? | . + {marker: (.body | parse_marker)} | select(.marker != null) | select(.state != "OPEN") - | select(.marker as $mk - | any($mk.methods[]; ($mk.service + "." + .) | IN($app[])) - or ($mk.kind == "service" and any($app[]; startswith($mk.service + ".")))) + | select(.marker.service | IN($app_services[])) | .number] + [if ($actions | type) == "array" then $actions[] | select(.action == "close") | .number else empty end]) | unique diff --git a/hack/automation/testdata/rpc-issues/coverage/expected.txt b/hack/automation/testdata/rpc-issues/coverage/expected.txt index 2289e10..3664a1d 100644 --- a/hack/automation/testdata/rpc-issues/coverage/expected.txt +++ b/hack/automation/testdata/rpc-issues/coverage/expected.txt @@ -1 +1,2 @@ OpenShell.Watch +NewsFeed.Get diff --git a/hack/automation/testdata/rpc-issues/coverage/keys.txt b/hack/automation/testdata/rpc-issues/coverage/keys.txt index 964f339..222f378 100644 --- a/hack/automation/testdata/rpc-issues/coverage/keys.txt +++ b/hack/automation/testdata/rpc-issues/coverage/keys.txt @@ -2,3 +2,4 @@ OpenShell.Watch OpenShell.Snapshot ServiceDiscovery.Watch OpenShell.Hidden +NewsFeed.Get diff --git a/hack/automation/testdata/rpc-issues/coverage/openshell/v1/c/c.go b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/c/c.go new file mode 100644 index 0000000..e724983 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/c/c.go @@ -0,0 +1,10 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +// Package c binds a service whose name starts with "New". +package c + +func get(conn any) { + client := pb.NewNewsFeedClient(conn) + client.Get(nil) +} From c6252ea0d1e455960c5660ddfe11c5a87727a97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:15:47 +0100 Subject: [PATCH 05/23] feat(automation): add rpc-issues.sh to reconcile RPC coverage issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gather core's protos at the newest core tag (or --tag) as a buf image plus the raw files, core source references, SDK coverage, generated bindings, the bump branch, exceptions, and existing rpc-coverage issues into one input document, fail before any write when it is incomplete, plan with rpc-issues.jq, and apply the actions with gh or print them with --dry-run. Missing labels are created only when an action applies them. Add the mise task core:rpc-issues. Signed-off-by: Roland Huß --- hack/automation/rpc-issues.sh | 350 ++++++++++++++++++++++++++++++++++ mise.toml | 4 + 2 files changed, 354 insertions(+) create mode 100755 hack/automation/rpc-issues.sh diff --git a/hack/automation/rpc-issues.sh b/hack/automation/rpc-issues.sh new file mode 100755 index 0000000..b2743ba --- /dev/null +++ b/hack/automation/rpc-issues.sh @@ -0,0 +1,350 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + +# rpc-issues.sh: open, update, close, and reopen one GitHub issue per core +# RPC (or per core service) that is user-facing and the Go SDK does not wrap. +# +# Usage: rpc-issues.sh [--dry-run] [--max-new ] [--tag ] +# [--plan-input ] [--dump-input ] +# +# Run from the root of an sdk-go clone on main; coverage is read from the +# checkout. Gathers one input document (core's protos at the newest core tag +# or --tag as a buf image and raw files, core source references, SDK +# coverage, exceptions, existing issues), runs the planner rpc-issues.jq, and +# applies its actions with gh, or prints them with --dry-run. No GitHub write +# happens before the input is complete and the plan is computed. +# +# --dry-run print the planned actions, change nothing +# --max-new limit for newly opened issues (default 10) +# --tag evaluate this core tag instead of the newest one +# --plan-input skip gathering, plan this input document (implies +# --dry-run) +# --dump-input write the assembled input document, then continue +# +# Environment: GH_TOKEN, BOT_LOGIN (the bot's login, for example +# "ai-openshell-sdk-go[bot]"; required unless --plan-input), CORE_REPO +# (default NVIDIA/OpenShell), SDK_REPO (default ai-openshell/sdk-go), +# RPC_EXCEPTIONS (default hack/automation/rpc-exceptions.txt). +# Exit codes: 0 success, 1 failure, 2 usage error. +set -euo pipefail + +core_repo=${CORE_REPO:-NVIDIA/OpenShell} +sdk_repo=${SDK_REPO:-ai-openshell/sdk-go} +here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +# shellcheck source=hack/automation/rpc-issues-lib.sh +. "$here/rpc-issues-lib.sh" +# shellcheck source=hack/automation/rpc-coverage.sh +. "$here/rpc-coverage.sh" + +usage() { + [ $# -eq 0 ] || echo "ERROR: $*" >&2 + echo "usage: $0 [--dry-run] [--max-new ] [--tag ] [--plan-input ] [--dump-input ]" >&2 + exit 2 +} +die() { echo "ERROR: $*" >&2; exit 1; } + +dry=0 +max_new=10 +tag= +plan_input= +dump_input= +while [ $# -gt 0 ]; do + case $1 in + --dry-run) dry=1; shift ;; + --max-new) [ $# -ge 2 ] || usage "--max-new needs a number"; max_new=$2; shift 2 ;; + --tag) [ $# -ge 2 ] || usage "--tag needs a core tag"; tag=$2; shift 2 ;; + --plan-input) [ $# -ge 2 ] || usage "--plan-input needs a file"; plan_input=$2; dry=1; shift 2 ;; + --dump-input) [ $# -ge 2 ] || usage "--dump-input needs a file"; dump_input=$2; shift 2 ;; + *) usage "unknown argument '$1'" ;; + esac +done +[[ "$max_new" =~ ^[0-9]+$ ]] || usage "--max-new must be a non-negative integer, not '$max_new'" +[ -z "$tag" ] || [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-pre\.[0-9]+)?$ ]] || + usage "'$tag' is not a core release tag (vX.Y.Z or vX.Y.Z-pre.N)" +if [ -n "$plan_input" ]; then + [ -f "$plan_input" ] || usage "$plan_input: no such file" +else + [ -n "${BOT_LOGIN:-}" ] || usage "BOT_LOGIN must name the bot's login, for example 'ai-openshell-sdk-go[bot]'" + [ "$(git rev-parse --show-toplevel)" = "$(pwd -P)" ] || die "run this from the root of the sdk-go clone" +fi +for tool in jq gh git curl buf yq; do + command -v "$tool" >/dev/null || die "$tool not found (run 'mise install')" +done + +work=$(mktemp -d) +trap 'rm -rf "$work"' EXIT + +plan() { # plan [mode] + jq -f "$here/rpc-issues.jq" --rawfile template "$here/rpc-issue-body.md" --arg mode "${2:-plan}" "$1" +} + +# snake , camel +snake() { sed -E 's/([A-Z]+)([A-Z][a-z])/\1_\2/g; s/([a-z0-9])([A-Z])/\1_\2/g' <<<"$1" | tr '[:upper:]' '[:lower:]'; } +camel() { printf '%s%s\n' "$(tr '[:upper:]' '[:lower:]' <<<"${1:0:1}")" "${1:1}"; } + +# refs : up to 3 files under core's that +# mention as a word, else . +refs() { + local dir=$1 list + [ -d "$work/core/$dir" ] || return 0 + list=$(cd "$work/core" && { grep -rlw -- "$2" "$dir" || grep -rlw -- "$3" "$dir" || true; } | LC_ALL=C sort) + [ -z "$list" ] || head -3 <<<"$list" +} + +gather() { + local out=$1 f n raw_n + if [ -z "$tag" ]; then + tag=$("$here/core-tags.sh" --all --pin v0.0.0 | tail -1) || die "cannot list core tags" + [ -n "$tag" ] || die "core $core_repo has no release tags" + fi + echo "Core tag: $tag" >&2 + + # 1. Core's protos at the tag as a descriptor image. + buf build "https://github.com/$core_repo.git#tag=$tag,depth=1" \ + --config '{"version":"v2","modules":[{"path":"proto"}]}' -o "$work/image.json" || + die "buf build of $core_repo at $tag failed" + + # 2. Raw proto files for signatures and messages; every rpc declaration + # must be in the image. + mkdir -p "$work/raw" + echo '{}' >"$work/sources.json" + for f in $(jq -r '.file[].name | select(startswith("google/") | not)' "$work/image.json"); do + mkdir -p "$work/raw/$(dirname "$f")" + curl -sSf --retry 3 -o "$work/raw/$f" "https://raw.githubusercontent.com/$core_repo/$tag/proto/$f" || + die "cannot fetch proto/$f at $tag" + n=$(jq --arg f "$f" '[.file[] | select(.name == $f) | .service[]?.method[]?] | length' "$work/image.json") + raw_n=$(grep -cE '^[[:space:]]*rpc[[:space:]]+[A-Za-z_]' "$work/raw/$f" || true) + [ "$n" = "$raw_n" ] || die "proto/$f at $tag declares $raw_n rpcs, but the buf image has $n" + jq --arg f "$f" --rawfile text "$work/raw/$f" '.[$f] = $text' "$work/sources.json" >"$work/sources.tmp" + mv "$work/sources.tmp" "$work/sources.json" + done + jq -e '[.file[].service[]?.method[]? | .options["[openshell.options.v1.authorization]"] + | select(. != null) | select(.authMode == null)] | length == 0' "$work/image.json" >/dev/null || + die "an authorization annotation at $tag has no auth_mode" + jq -e 'any(.file[] | select(.name == "openshell.proto") | .service[]?.method[]?; + .options["[openshell.options.v1.authorization]"].authMode != null)' "$work/image.json" >/dev/null || + die "openshell.proto at $tag has no annotated methods; the authorization option was not parsed" + + # 3. Where core mentions each method: server, Rust SDK, TypeScript SDK. + git clone --quiet --depth=1 --filter=blob:none --no-checkout --branch "$tag" \ + "https://github.com/$core_repo.git" "$work/core" || die "cannot clone $core_repo at $tag" + git -C "$work/core" sparse-checkout set crates/openshell-server/src crates/openshell-sdk/src sdk/typescript/src + git -C "$work/core" checkout --quiet || die "cannot check out $core_repo at $tag" + jq -r '.file[] | select(.name | startswith("google/") | not) | .service[]? | .name as $s | .method[] | "\($s).\(.name) \(.name)"' \ + "$work/image.json" | sort -u >"$work/methods.txt" + local key method sn cm p + while read -r key method; do + sn=$(snake "$method"); cm=$(camel "$method") + for p in $(refs crates/openshell-server/src "$sn" "$method"); do printf '%s\tserver_refs\t%s\n' "$key" "$p"; done + for p in $(refs crates/openshell-sdk/src "$sn" "$method"); do printf '%s\trust_sdk_refs\t%s\n' "$key" "$p"; done + for p in $(refs sdk/typescript/src "$cm" "$method"); do printf '%s\tts_sdk_refs\t%s\n' "$key" "$p"; done + done <"$work/methods.txt" >"$work/refs.tsv" + jq -Rn --arg base "https://github.com/$core_repo/blob/$tag/" ' + reduce (inputs | select(length > 0) | split("\t")) as $r ({}; + .[$r[0]][$r[1]] += [{path: $r[2], url: ($base + $r[2])}])' "$work/refs.tsv" >"$work/refs.json" + + # 4. One row per method of every non-google file. + jq -n --slurpfile img "$work/image.json" --slurpfile src "$work/sources.json" \ + --slurpfile refs "$work/refs.json" --arg core_repo "$core_repo" --arg tag "$tag" ' + def dedent: (map(select(test("\\S")) | match("^ *").length) | min // 0) as $n + | map(if length >= $n then .[$n:] else . end); + def comment: (. // "") | split("\n") | map(sub("^ "; "") | sub("\\s+$"; "")) | join("\n") | sub("^\\s+"; "") | sub("\\s+$"; ""); + def last_line: if length == 4 then .[2] else .[0] end; + $img[0] as $img | $src[0] as $src | $refs[0] as $refs + | ([$img.file[] | .package as $p | .name as $f | (.messageType // []) | to_entries[] + | {key: ("." + (if $p then $p + "." else "" end) + .value.name), value: {file: $f, index: .key}}] + | from_entries) as $msgs + | ([$img.file[] | {key: .name, value: ([.sourceCodeInfo.location[]? + | select((.path | length) == 2 and .path[0] == 4 or ((.path | length) == 4 and .path[0] == 6 and .path[2] == 2)) + | {key: (.path | map(tostring) | join(".")), value: .}] | from_entries)}] | from_entries) as $locs + | def cut($f; $span): ($src[$f] // "" | split("\n"))[$span[0]:($span | last_line) + 1] | dedent | join("\n"); + def message($t): ($t | ltrimstr(".")) as $name + | $msgs[$t] as $m + | if $m == null then {name: $name, source: ""} + else {name: $name, source: (($locs[$m.file][("4." + ($m.index | tostring))].span) as $sp + | if $sp == null then "" else cut($m.file; $sp) end)} end; + [$img.file[] | select(.name | startswith("google/") | not) | .name as $f + | (.service // []) | to_entries[] | .key as $si | .value.name as $s + | .value.method | to_entries[] | .key as $mi | .value as $m + | $locs[$f]["6.\($si).2.\($mi)"] as $loc + | ($m.options["[openshell.options.v1.authorization]"] // {}) as $auth + | { + file: $f, service: $s, method: $m.name, + auth_mode: $auth.authMode, scope: $auth.scope, + workspace_role: $auth.workspaceRole, global_role: $auth.globalRole, + client_streaming: ($m.clientStreaming // false), server_streaming: ($m.serverStreaming // false), + request: ($m.inputType | ltrimstr(".")), response: ($m.outputType | ltrimstr(".")), + comment: ($loc.leadingComments | comment), + signature: (if $loc == null then "" else cut($f; $loc.span) end), + messages: ([$m.inputType, $m.outputType] | unique | map(message(.))), + proto_url: (if $loc == null then "" + else "https://github.com/\($core_repo)/blob/\($tag)/proto/\($f)#L\($loc.span[0] + 1)-L\(($loc.span | last_line) + 1)" end), + server_refs: ($refs["\($s).\($m.name)"].server_refs // []), + rust_sdk_refs: ($refs["\($s).\($m.name)"].rust_sdk_refs // []), + ts_sdk_refs: ($refs["\($s).\($m.name)"].ts_sdk_refs // []) + }]' >"$work/rpcs.json" + jq -e 'length > 0 and all(.[]; .signature != "" and .proto_url != "")' "$work/rpcs.json" >/dev/null || + die "cannot locate every rpc declaration of $tag in its proto source" + + # 5. SDK coverage, generated bindings, bindings generation, bump branch. + jq -r '.[] | "\(.service).\(.method)"' "$work/rpcs.json" | sort -u >"$work/keys.txt" + rpc_covered_list . "$work/keys.txt" >"$work/covered.txt" || die "cannot determine the RPCs the SDK covers" + rpc_bound_services . >"$work/bound.txt" || die "cannot determine the services the SDK binds" + grep -ho '_FullMethodName *= *"/[^"]*"' proto/*/*_grpc.pb.go 2>/dev/null | + sed -E 's#.*"/([A-Za-z0-9_]+\.)*([A-Za-z0-9_]+)/([A-Za-z0-9_]+)"#\2.\3#' | sort -u >"$work/built.txt" || true + [ -s "$work/built.txt" ] || die "no FullMethodName constants in proto/*/*_grpc.pb.go" + yq -r '.plugins[0].opt[] | select(test("^M")) | sub("^M"; "") | sub("=.*"; "")' buf.gen.yaml >"$work/generated.txt" || + die "cannot read the M options of buf.gen.yaml" + local branch_refs bump=false + branch_refs=$(gh api "repos/$sdk_repo/git/matching-refs/heads/core/$tag" --jq '.[].ref') || + die "cannot list branches of $sdk_repo" + if grep -qxF "refs/heads/core/$tag" <<<"$branch_refs"; then bump=true; fi + + # 6. Exceptions and existing issues. + rpc_parse_exceptions "${RPC_EXCEPTIONS:-hack/automation/rpc-exceptions.txt}" >"$work/exceptions.json" || exit 1 + gh issue list -R "$sdk_repo" --label rpc-coverage --state all --limit 500 \ + --json number,state,title,body,labels --jq 'map(.labels |= map(.name))' >"$work/issues.json" || + die "cannot list the rpc-coverage issues of $sdk_repo" + + jq -n --arg repo "$sdk_repo" --arg core_repo "$core_repo" --arg tag "$tag" \ + --argjson max_new "$max_new" --argjson bump "$bump" \ + --slurpfile rpcs "$work/rpcs.json" --slurpfile exceptions "$work/exceptions.json" \ + --slurpfile issues "$work/issues.json" \ + --rawfile covered "$work/covered.txt" --rawfile bound "$work/bound.txt" \ + --rawfile built "$work/built.txt" --rawfile generated "$work/generated.txt" ' + def lines: split("\n") | map(select(length > 0)); + {repo: $repo, core_repo: $core_repo, tag: $tag, max_new: $max_new, + rpcs: $rpcs[0], services_bound: ($bound | lines), covered: ($covered | lines), + built: ($built | lines), generated_files: ($generated | lines), + bump_branch_exists: $bump, exceptions: $exceptions[0], + issues: [$issues[0][] | . + {last_actor_is_bot: null, last_event: null}]}' >"$out" +} + +# Fill last_event and last_actor_is_bot for the issues the plan depends on. +resolve_actors() { + local in=$1 fetched=" " need n ev last event login + while :; do + need=$(plan "$in" needs-actors | jq -r '.[]') || die "planning failed" + local new= + for n in $need; do + case $fetched in *" $n "*) ;; *) new+="$n " ;; esac + done + [ -n "$new" ] || break + for n in $new; do + ev=$(gh api --paginate "repos/$sdk_repo/issues/$n/events" \ + --jq '.[] | select(.event == "closed" or .event == "reopened") | "\(.event) \(.actor.login // "")"') || + die "cannot read the events of #$n" + last=$(tail -1 <<<"$ev") + event=${last%% *}; login=${last#* } + jq --argjson n "$n" --arg event "$event" --arg login "$login" --arg bot "$BOT_LOGIN" ' + .issues |= map(if .number == $n then + .last_event = (if $event == "" then null else $event end) + | .last_actor_is_bot = (if $event == "" then null else $login == $bot end) + else . end)' "$in" >"$in.tmp" + mv "$in.tmp" "$in" + fetched+="$n " + done + done +} + +if [ -n "$plan_input" ]; then + cp "$plan_input" "$work/input.json" +else + gather "$work/input.json" + resolve_actors "$work/input.json" +fi +jq --argjson max_new "$max_new" '.max_new = $max_new' "$work/input.json" >"$work/input.tmp" && mv "$work/input.tmp" "$work/input.json" +[ -z "$dump_input" ] || cp "$work/input.json" "$dump_input" + +plan "$work/input.json" >"$work/plan.json" || die "planning failed" +if jq -e 'type == "object" and .error == "too-many-new"' "$work/plan.json" >/dev/null; then + echo "ERROR: the plan opens $(jq '.planned | length' "$work/plan.json") new issues, more than --max-new $max_new; nothing was changed:" >&2 + jq -r '.planned[] | " - \(.)"' "$work/plan.json" >&2 + echo "Raise the limit with --max-new (core-watch input max_new_issues) if these are expected." >&2 + exit 1 +fi + +tag=$(jq -r .tag "$work/input.json") +count() { jq --arg a "$1" '[.[] | select(.action == $a)] | length' "$work/plan.json"; } +summary="core $tag: $(count open) to open, $(count update) to update, $(count close) to close, $(count reopen) to reopen" + +if [ "$dry" -eq 1 ]; then + echo "dry-run: $summary" + jq -r '.[] | + def indent: split("\n") | map(" | " + .) | join("\n"); + def labels: ((.add_labels // []) | map("+" + .)) + ((.remove_labels // []) | map("-" + .)) + | if length > 0 then " (labels " + join(" ") + ")" else "" end; + if .action == "open" then + "\ndry-run: open \"\(.title)\" (labels \(.labels | join(", ")))\n\(.body | indent)" + elif .action == "update" then + "\ndry-run: update #\(.number) \(.group)\(labels)" + (if .body then "\n" + (.body | indent) else "" end) + elif .action == "close" then + "\ndry-run: close #\(.number) \(.group) with comment:\n\(.comment | indent)" + else + "\ndry-run: reopen #\(.number) \(.group)\(labels) with comment:\n\(.comment | indent)\n body:\n\(.body | indent)" + end' "$work/plan.json" + exit 0 +fi + +n=$(jq length "$work/plan.json") +if [ "$n" -eq 0 ]; then + echo "Nothing to do for $summary." + exit 0 +fi +echo "Applying: $summary" + +# Create the labels the plan applies and the repository lacks. +label_desc() { + case $1 in + rpc-coverage) echo "Core RPC the Go SDK does not wrap yet 1d76db" ;; + rpc:ready) echo "Coverage issue buildable on main now 0e8a16" ;; + rpc:blocked) echo "Coverage issue waiting for a core bump or bindings generation d93f0b" ;; + "help wanted") echo "Extra attention is needed 008672" ;; + esac +} +needed=$(jq -r '[.[] | (.labels // []) + (.add_labels // []) | .[]] | unique | .[]' "$work/plan.json") +if [ -n "$needed" ]; then + existing=$(gh label list -R "$sdk_repo" --limit 500 --json name --jq '.[].name') || die "cannot list labels" + while IFS= read -r l; do + grep -qxF "$l" <<<"$existing" && continue + d=$(label_desc "$l") + [ -n "$d" ] || die "no description for label $l" + gh label create "$l" -R "$sdk_repo" --description "${d% *}" --color "${d##* }" >/dev/null + echo "created label $l" + done <<<"$needed" +fi + +for i in $(seq 0 $((n - 1))); do + jq ".[$i]" "$work/plan.json" >"$work/action.json" + action=$(jq -r .action "$work/action.json") + num=$(jq -r '.number // empty' "$work/action.json") + jq -r '.body // empty' "$work/action.json" >"$work/body.md" + label_args=() + while IFS= read -r l; do [ -z "$l" ] || label_args+=(--add-label "$l"); done < <(jq -r '(.add_labels // [])[]' "$work/action.json") + while IFS= read -r l; do [ -z "$l" ] || label_args+=(--remove-label "$l"); done < <(jq -r '(.remove_labels // [])[]' "$work/action.json") + case $action in + open) + title=$(jq -r .title "$work/action.json") + open_args=() + while IFS= read -r l; do open_args+=(--label "$l"); done < <(jq -r '.labels[]' "$work/action.json") + url=$(gh issue create -R "$sdk_repo" --title "$title" --body-file "$work/body.md" "${open_args[@]}") + echo "opened #${url##*/} $title" + ;; + update) + edit_args=("${label_args[@]}") + [ ! -s "$work/body.md" ] || edit_args+=(--body-file "$work/body.md") + gh issue edit "$num" -R "$sdk_repo" "${edit_args[@]}" >/dev/null + echo "updated #$num" + ;; + close) + gh issue close "$num" -R "$sdk_repo" --comment "$(jq -r .comment "$work/action.json")" >/dev/null + echo "closed #$num" + ;; + reopen) + gh issue reopen "$num" -R "$sdk_repo" --comment "$(jq -r .comment "$work/action.json")" >/dev/null + gh issue edit "$num" -R "$sdk_repo" --body-file "$work/body.md" "${label_args[@]}" >/dev/null + echo "reopened #$num" + ;; + *) die "unknown action $action" ;; + esac +done diff --git a/mise.toml b/mise.toml index 72a37cf..c489dab 100644 --- a/mise.toml +++ b/mise.toml @@ -258,3 +258,7 @@ run = "hack/automation/drift-check.sh" [tasks.e2e] description = "Run the E2E suite against the gateway named in OPENSHELL_GATEWAY (see hack/automation/start-gateway.sh)" run = "go vet -tags=e2e ./e2e/... && go test -tags=e2e -timeout 8m -parallel ${E2E_PARALLEL:-5} ./e2e/..." + +[tasks."core:rpc-issues"] +description = "Open, update, and close RPC coverage issues (--dry-run, --max-new , --tag )" +run = "hack/automation/rpc-issues.sh" From 25d8165c132bc35681322d33ea63a7b6cecbe846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:15:47 +0100 Subject: [PATCH 06/23] test(automation): add planner fixtures for new coverage issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit backfill-v0.1.9 is the real core v0.1.9 state and plans the six expected issues; idempotent, too-many-new, unannotated-served, plugin-file, and no-marker cover repeat runs, the new-issue limit, selection, and marker parsing. Signed-off-by: Roland Huß --- .../planner/backfill-v0.1.9/expected.json | 68 + .../backfill-v0.1.9/expected.json.license | 2 + .../planner/backfill-v0.1.9/input.json | 3902 ++++++++++++++++ .../backfill-v0.1.9/input.json.license | 2 + .../planner/idempotent/expected.json | 1 + .../planner/idempotent/expected.json.license | 2 + .../rpc-issues/planner/idempotent/input.json | 3981 +++++++++++++++++ .../planner/idempotent/input.json.license | 2 + .../planner/no-marker/expected.json | 13 + .../planner/no-marker/expected.json.license | 2 + .../rpc-issues/planner/no-marker/input.json | 117 + .../planner/no-marker/input.json.license | 2 + .../planner/plugin-file/expected.json | 1 + .../planner/plugin-file/expected.json.license | 2 + .../rpc-issues/planner/plugin-file/input.json | 128 + .../planner/plugin-file/input.json.license | 2 + .../planner/too-many-new/expected.json | 16 + .../too-many-new/expected.json.license | 2 + .../planner/too-many-new/input.json | 434 ++ .../planner/too-many-new/input.json.license | 2 + .../planner/unannotated-served/expected.json | 13 + .../unannotated-served/expected.json.license | 2 + .../planner/unannotated-served/input.json | 95 + .../unannotated-served/input.json.license | 2 + 24 files changed, 8793 insertions(+) create mode 100644 hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/idempotent/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/idempotent/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/idempotent/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/idempotent/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/no-marker/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/no-marker/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/no-marker/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/no-marker/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/plugin-file/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/plugin-file/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/too-many-new/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/too-many-new/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json.license diff --git a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json new file mode 100644 index 0000000..0efa887 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json @@ -0,0 +1,68 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.1.9` has `OpenShell.BeginRootfsTarStaging`, a user-facing RPC the Go SDK does not wrap yet.", + "group": "method:OpenShell.BeginRootfsTarStaging", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap OpenShell.BeginRootfsTarStaging (core v0.1.9)" + }, + { + "action": "open", + "body": "\n\nCore `v0.1.9` has `OpenShell.ExecSandboxInteractive`, a user-facing RPC the Go SDK does not wrap yet.", + "group": "method:OpenShell.ExecSandboxInteractive", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap OpenShell.ExecSandboxInteractive (core v0.1.9)" + }, + { + "action": "open", + "body": "\n\nCore `v0.1.9` has `OpenShell.ForwardTcp`, a user-facing RPC the Go SDK does not wrap yet.", + "group": "method:OpenShell.ForwardTcp", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.1.9)" + }, + { + "action": "open", + "body": "\n\nCore `v0.1.9` has `OpenShell.GetSandboxProviderStatus`, a user-facing RPC the Go SDK does not wrap yet.", + "group": "method:OpenShell.GetSandboxProviderStatus", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap OpenShell.GetSandboxProviderStatus (core v0.1.9)" + }, + { + "action": "open", + "body": "\n\nCore `v0.1.9` has 1 user-facing method(s) in the `SandboxUpdates` service that the Go SDK does not wrap yet.", + "group": "service:SandboxUpdates", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap the SandboxUpdates service (core v0.1.9)" + }, + { + "action": "open", + "body": "\n\nCore `v0.1.9` has 2 user-facing method(s) in the `ServiceDiscovery` service that the Go SDK does not wrap yet.", + "group": "service:ServiceDiscovery", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap the ServiceDiscovery service (core v0.1.9)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json.license b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json new file mode 100644 index 0000000..c386afb --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json @@ -0,0 +1,3902 @@ +{ + "built": [ + "OpenShell.AddWorkspaceMember", + "OpenShell.ApproveAllDraftChunks", + "OpenShell.ApproveDraftChunk", + "OpenShell.AttachSandboxProvider", + "OpenShell.BeginRootfsTarStaging", + "OpenShell.ClearDraftChunks", + "OpenShell.ConfigureProviderRefresh", + "OpenShell.ConnectSupervisor", + "OpenShell.CreateProvider", + "OpenShell.CreateSandbox", + "OpenShell.CreateSandboxTemplate", + "OpenShell.CreateSshSession", + "OpenShell.CreateWorkspace", + "OpenShell.DeleteProvider", + "OpenShell.DeleteProviderProfile", + "OpenShell.DeleteProviderRefresh", + "OpenShell.DeleteSandbox", + "OpenShell.DeleteSandboxTemplate", + "OpenShell.DeleteService", + "OpenShell.DeleteWorkspace", + "OpenShell.DetachSandboxProvider", + "OpenShell.EditDraftChunk", + "OpenShell.ExchangeProviderSubjectToken", + "OpenShell.ExecSandbox", + "OpenShell.ExecSandboxInteractive", + "OpenShell.ExposeService", + "OpenShell.FinalizeMainProcessExit", + "OpenShell.ForwardTcp", + "OpenShell.GetCurrentUser", + "OpenShell.GetDraftHistory", + "OpenShell.GetDraftPolicy", + "OpenShell.GetGatewayConfig", + "OpenShell.GetGatewayInfo", + "OpenShell.GetProvider", + "OpenShell.GetProviderCredentials", + "OpenShell.GetProviderProfile", + "OpenShell.GetProviderRefreshStatus", + "OpenShell.GetSandbox", + "OpenShell.GetSandboxConfig", + "OpenShell.GetSandboxLogs", + "OpenShell.GetSandboxPolicyStatus", + "OpenShell.GetSandboxProviderEnvironment", + "OpenShell.GetSandboxProviderStatus", + "OpenShell.GetSandboxTemplate", + "OpenShell.GetService", + "OpenShell.GetWorkspace", + "OpenShell.Health", + "OpenShell.ImportProviderProfiles", + "OpenShell.IssueSandboxToken", + "OpenShell.LintProviderProfiles", + "OpenShell.ListProviderProfiles", + "OpenShell.ListProviders", + "OpenShell.ListSandboxes", + "OpenShell.ListSandboxPolicies", + "OpenShell.ListSandboxProviders", + "OpenShell.ListSandboxTemplates", + "OpenShell.ListServices", + "OpenShell.ListWorkspaceMembers", + "OpenShell.ListWorkspaces", + "OpenShell.PeerGetSandboxProviderStatus", + "OpenShell.PeerNotifyConfigUpdate", + "OpenShell.PeerRelay", + "OpenShell.PeerReportEndpointStatus", + "OpenShell.PeerReportProviderReadiness", + "OpenShell.PushSandboxLogs", + "OpenShell.RefreshSandboxToken", + "OpenShell.RejectDraftChunk", + "OpenShell.RelayStream", + "OpenShell.RemoveWorkspaceMember", + "OpenShell.ReportEndpointStatus", + "OpenShell.ReportMainProcessExit", + "OpenShell.ReportPolicyStatus", + "OpenShell.ReportProviderReadiness", + "OpenShell.ReportSandboxConfiguration", + "OpenShell.ResumeSandbox", + "OpenShell.RevokeSshSession", + "OpenShell.RotateProviderCredential", + "OpenShell.StartSandbox", + "OpenShell.StopSandbox", + "OpenShell.SubmitPolicyAnalysis", + "OpenShell.SuspendSandbox", + "OpenShell.UndoDraftChunk", + "OpenShell.UpdateConfig", + "OpenShell.UpdateProvider", + "OpenShell.UpdateProviderProfiles", + "OpenShell.WatchSandbox", + "SandboxUpdates.UpdateSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.AddWorkspaceMember", + "OpenShell.ApproveAllDraftChunks", + "OpenShell.ApproveDraftChunk", + "OpenShell.AttachSandboxProvider", + "OpenShell.ClearDraftChunks", + "OpenShell.ConfigureProviderRefresh", + "OpenShell.CreateProvider", + "OpenShell.CreateSandbox", + "OpenShell.CreateSandboxTemplate", + "OpenShell.CreateSshSession", + "OpenShell.CreateWorkspace", + "OpenShell.DeleteProvider", + "OpenShell.DeleteProviderProfile", + "OpenShell.DeleteProviderRefresh", + "OpenShell.DeleteSandbox", + "OpenShell.DeleteSandboxTemplate", + "OpenShell.DeleteService", + "OpenShell.DeleteWorkspace", + "OpenShell.DetachSandboxProvider", + "OpenShell.EditDraftChunk", + "OpenShell.ExecSandbox", + "OpenShell.ExposeService", + "OpenShell.GetCurrentUser", + "OpenShell.GetDraftHistory", + "OpenShell.GetDraftPolicy", + "OpenShell.GetGatewayConfig", + "OpenShell.GetGatewayInfo", + "OpenShell.GetProvider", + "OpenShell.GetProviderProfile", + "OpenShell.GetProviderRefreshStatus", + "OpenShell.GetSandbox", + "OpenShell.GetSandboxConfig", + "OpenShell.GetSandboxLogs", + "OpenShell.GetSandboxPolicyStatus", + "OpenShell.GetSandboxTemplate", + "OpenShell.GetService", + "OpenShell.GetWorkspace", + "OpenShell.Health", + "OpenShell.ImportProviderProfiles", + "OpenShell.LintProviderProfiles", + "OpenShell.ListProviderProfiles", + "OpenShell.ListProviders", + "OpenShell.ListSandboxes", + "OpenShell.ListSandboxPolicies", + "OpenShell.ListSandboxProviders", + "OpenShell.ListSandboxTemplates", + "OpenShell.ListServices", + "OpenShell.ListWorkspaceMembers", + "OpenShell.ListWorkspaces", + "OpenShell.RejectDraftChunk", + "OpenShell.RemoveWorkspaceMember", + "OpenShell.ResumeSandbox", + "OpenShell.RevokeSshSession", + "OpenShell.RotateProviderCredential", + "OpenShell.StartSandbox", + "OpenShell.StopSandbox", + "OpenShell.SuspendSandbox", + "OpenShell.UndoDraftChunk", + "OpenShell.UpdateConfig", + "OpenShell.UpdateProvider", + "OpenShell.UpdateProviderProfiles", + "OpenShell.WatchSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.GetCapabilitiesRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.GetCapabilitiesResponse", + "source": "" + } + ], + "method": "GetCapabilities", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L27-L27", + "request": "openshell.compute.v1.GetCapabilitiesRequest", + "response": "openshell.compute.v1.GetCapabilitiesResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.AuthenticateSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.AuthenticateSandboxResponse", + "source": "" + } + ], + "method": "AuthenticateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L32-L33", + "request": "openshell.compute.v1.AuthenticateSandboxRequest", + "response": "openshell.compute.v1.AuthenticateSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.ValidateSandboxCreateRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.ValidateSandboxCreateResponse", + "source": "" + } + ], + "method": "ValidateSandboxCreate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L36-L37", + "request": "openshell.compute.v1.ValidateSandboxCreateRequest", + "response": "openshell.compute.v1.ValidateSandboxCreateResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.GetSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.GetSandboxResponse", + "source": "" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L40-L40", + "request": "openshell.compute.v1.GetSandboxRequest", + "response": "openshell.compute.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.ListSandboxesRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.ListSandboxesResponse", + "source": "" + } + ], + "method": "ListSandboxes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L43-L43", + "request": "openshell.compute.v1.ListSandboxesRequest", + "response": "openshell.compute.v1.ListSandboxesResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.CreateSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.CreateSandboxResponse", + "source": "" + } + ], + "method": "CreateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L46-L46", + "request": "openshell.compute.v1.CreateSandboxRequest", + "response": "openshell.compute.v1.CreateSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.StopSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.StopSandboxResponse", + "source": "" + } + ], + "method": "StopSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L49-L49", + "request": "openshell.compute.v1.StopSandboxRequest", + "response": "openshell.compute.v1.StopSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.StartSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.StartSandboxResponse", + "source": "" + } + ], + "method": "StartSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L52-L52", + "request": "openshell.compute.v1.StartSandboxRequest", + "response": "openshell.compute.v1.StartSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.SuspendSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.SuspendSandboxResponse", + "source": "" + } + ], + "method": "SuspendSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L61-L61", + "request": "openshell.compute.v1.SuspendSandboxRequest", + "response": "openshell.compute.v1.SuspendSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.DeleteSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.DeleteSandboxResponse", + "source": "" + } + ], + "method": "DeleteSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L64-L64", + "request": "openshell.compute.v1.DeleteSandboxRequest", + "response": "openshell.compute.v1.DeleteSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.WatchSandboxesEvent", + "source": "" + }, + { + "name": "openshell.compute.v1.WatchSandboxesRequest", + "source": "" + } + ], + "method": "WatchSandboxes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L67-L67", + "request": "openshell.compute.v1.WatchSandboxesRequest", + "response": "openshell.compute.v1.WatchSandboxesEvent", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.EnsureWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.EnsureWorkspaceResponse", + "source": "" + } + ], + "method": "EnsureWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L71-L71", + "request": "openshell.compute.v1.EnsureWorkspaceRequest", + "response": "openshell.compute.v1.EnsureWorkspaceResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.DeleteWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.DeleteWorkspaceResponse", + "source": "" + } + ], + "method": "DeleteWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L74-L74", + "request": "openshell.compute.v1.DeleteWorkspaceRequest", + "response": "openshell.compute.v1.DeleteWorkspaceResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.ResolveSupervisorAppEndpointRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.ResolveSupervisorAppEndpointResponse", + "source": "" + } + ], + "method": "ResolveSupervisorAppEndpoint", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L83-L84", + "request": "openshell.compute.v1.ResolveSupervisorAppEndpointRequest", + "response": "openshell.compute.v1.ResolveSupervisorAppEndpointResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriverAppEndpoints", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.UpdateSandboxConfigurationRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.UpdateSandboxConfigurationResponse", + "source": "" + } + ], + "method": "UpdateSandboxConfiguration", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L92-L93", + "request": "openshell.compute.v1.UpdateSandboxConfigurationRequest", + "response": "openshell.compute.v1.UpdateSandboxConfigurationResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriverConfigurationUpdates", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.GetCredentialDriverCapabilitiesRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.GetCredentialDriverCapabilitiesResponse", + "source": "" + } + ], + "method": "GetCapabilities", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L20-L21", + "request": "openshell.credentials.v1.GetCredentialDriverCapabilitiesRequest", + "response": "openshell.credentials.v1.GetCredentialDriverCapabilitiesResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.StoreCredentialRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.StoreCredentialResponse", + "source": "" + } + ], + "method": "StoreCredential", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L24-L24", + "request": "openshell.credentials.v1.StoreCredentialRequest", + "response": "openshell.credentials.v1.StoreCredentialResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.DeleteCredentialRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.DeleteCredentialResponse", + "source": "" + } + ], + "method": "DeleteCredential", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L27-L27", + "request": "openshell.credentials.v1.DeleteCredentialRequest", + "response": "openshell.credentials.v1.DeleteCredentialResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.ResolveCredentialsRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.ResolveCredentialsResponse", + "source": "" + } + ], + "method": "ResolveCredentials", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L30-L31", + "request": "openshell.credentials.v1.ResolveCredentialsRequest", + "response": "openshell.credentials.v1.ResolveCredentialsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.ListCredentialsRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.ListCredentialsResponse", + "source": "" + } + ], + "method": "ListCredentials", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L34-L34", + "request": "openshell.credentials.v1.ListCredentialsRequest", + "response": "openshell.credentials.v1.ListCredentialsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "unauthenticated", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.HealthRequest", + "source": "" + }, + { + "name": "openshell.v1.HealthResponse", + "source": "" + } + ], + "method": "Health", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L25-L29", + "request": "openshell.v1.HealthRequest", + "response": "openshell.v1.HealthResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetCurrentUserRequest", + "source": "" + }, + { + "name": "openshell.v1.GetCurrentUserResponse", + "source": "" + } + ], + "method": "GetCurrentUser", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L32-L36", + "request": "openshell.v1.GetCurrentUserRequest", + "response": "openshell.v1.GetCurrentUserResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": "platform_admin", + "messages": [ + { + "name": "openshell.v1.GetGatewayInfoRequest", + "source": "" + }, + { + "name": "openshell.v1.GetGatewayInfoResponse", + "source": "" + } + ], + "method": "GetGatewayInfo", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L39-L45", + "request": "openshell.v1.GetGatewayInfoRequest", + "response": "openshell.v1.GetGatewayInfoResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxResponse", + "source": "" + } + ], + "method": "CreateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L48-L54", + "request": "openshell.v1.CreateSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Allocate a gateway-owned staging slot for a local rootfs tar archive.\n\nThe gateway creates a request-scoped directory inside the compute driver's\nstaging root and returns an opaque single-use token plus the absolute path\nthe client must write the archive to. The token is then passed as\n`template.driver_config..rootfs_tar_staging_token` on\nCreateSandbox; callers never name a filesystem path themselves. Only a\nclient sharing the gateway's filesystem can complete the upload.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BeginRootfsTarStagingRequest", + "source": "message BeginRootfsTarStagingRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 3;\n // Base file name of the local archive. The gateway uses it only to name the\n // staged file; path separators and traversal components are rejected.\n string file_name = 1;\n // Size of the local archive in bytes, checked against the driver limit\n // before the gateway allocates a slot.\n uint64 size_bytes = 2;\n}" + }, + { + "name": "openshell.v1.BeginRootfsTarStagingResponse", + "source": "message BeginRootfsTarStagingResponse {\n reserved 4;\n reserved \"expires_at_ms\";\n // Opaque single-use token. Pass it as\n // `template.driver_config..rootfs_tar_staging_token` on\n // CreateSandbox. The first CreateSandbox presenting it consumes it.\n string staging_token = 1;\n // Absolute path on the gateway host the client must write the archive to.\n string upload_path = 2;\n // Maximum accepted archive size in bytes, enforced again by the driver.\n uint64 max_bytes = 3;\n // Wall-clock deadline after which the gateway reclaims the slot.\n google.protobuf.Timestamp expiration_time = 104;\n}" + } + ], + "method": "BeginRootfsTarStaging", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L64-L71", + "request": "openshell.v1.BeginRootfsTarStagingRequest", + "response": "openshell.v1.BeginRootfsTarStagingResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc BeginRootfsTarStaging(BeginRootfsTarStagingRequest)\n returns (BeginRootfsTarStagingResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxResponse", + "source": "" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L74-L80", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxesResponse", + "source": "" + } + ], + "method": "ListSandboxes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L83-L89", + "request": "openshell.v1.ListSandboxesRequest", + "response": "openshell.v1.ListSandboxesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSandboxTemplateRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxTemplateResponse", + "source": "" + } + ], + "method": "CreateSandboxTemplate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L92-L99", + "request": "openshell.v1.CreateSandboxTemplateRequest", + "response": "openshell.v1.SandboxTemplateResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxTemplateRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxTemplateResponse", + "source": "" + } + ], + "method": "GetSandboxTemplate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L102-L109", + "request": "openshell.v1.GetSandboxTemplateRequest", + "response": "openshell.v1.SandboxTemplateResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxTemplatesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxTemplatesResponse", + "source": "" + } + ], + "method": "ListSandboxTemplates", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L112-L119", + "request": "openshell.v1.ListSandboxTemplatesRequest", + "response": "openshell.v1.ListSandboxTemplatesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteSandboxTemplateRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteSandboxTemplateResponse", + "source": "" + } + ], + "method": "DeleteSandboxTemplate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L122-L129", + "request": "openshell.v1.DeleteSandboxTemplateRequest", + "response": "openshell.v1.DeleteSandboxTemplateResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxProvidersRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxProvidersResponse", + "source": "" + } + ], + "method": "ListSandboxProviders", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L132-L139", + "request": "openshell.v1.ListSandboxProvidersRequest", + "response": "openshell.v1.ListSandboxProvidersResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.AttachSandboxProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.AttachSandboxProviderResponse", + "source": "" + } + ], + "method": "AttachSandboxProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L142-L149", + "request": "openshell.v1.AttachSandboxProviderRequest", + "response": "openshell.v1.AttachSandboxProviderResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DetachSandboxProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.DetachSandboxProviderResponse", + "source": "" + } + ], + "method": "DetachSandboxProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L152-L159", + "request": "openshell.v1.DetachSandboxProviderRequest", + "response": "openshell.v1.DetachSandboxProviderResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Inspect the installed authority for one sandbox provider mutation.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxProviderStatusRequest", + "source": "message GetSandboxProviderStatusRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 4;\n string sandbox = 1;\n string provider = 2;\n string receipt_id = 3;\n}" + }, + { + "name": "openshell.v1.GetSandboxProviderStatusResponse", + "source": "message GetSandboxProviderStatusResponse {\n ProviderReadinessStatus status = 1;\n}" + } + ], + "method": "GetSandboxProviderStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L162-L169", + "request": "openshell.v1.GetSandboxProviderStatusRequest", + "response": "openshell.v1.GetSandboxProviderStatusResponse", + "rust_sdk_refs": [ + { + "path": "crates/openshell-sdk/src/provider_readiness.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-sdk/src/provider_readiness.rs" + } + ], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/gateway_metrics.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/gateway_metrics.rs" + }, + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/supervisor_session.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/supervisor_session.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandboxProviderStatus(GetSandboxProviderStatusRequest)\n returns (GetSandboxProviderStatusResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteSandboxResponse", + "source": "" + } + ], + "method": "DeleteSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L172-L178", + "request": "openshell.v1.DeleteSandboxRequest", + "response": "openshell.v1.DeleteSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "" + }, + { + "name": "openshell.v1.StopSandboxRequest", + "source": "" + } + ], + "method": "StopSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L181-L187", + "request": "openshell.v1.StopSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "" + }, + { + "name": "openshell.v1.StartSandboxRequest", + "source": "" + } + ], + "method": "StartSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L190-L196", + "request": "openshell.v1.StartSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "" + }, + { + "name": "openshell.v1.SuspendSandboxRequest", + "source": "" + } + ], + "method": "SuspendSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L201-L207", + "request": "openshell.v1.SuspendSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ResumeSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxResponse", + "source": "" + } + ], + "method": "ResumeSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L210-L216", + "request": "openshell.v1.ResumeSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSshSessionRequest", + "source": "" + }, + { + "name": "openshell.v1.CreateSshSessionResponse", + "source": "" + } + ], + "method": "CreateSshSession", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L219-L225", + "request": "openshell.v1.CreateSshSessionRequest", + "response": "openshell.v1.CreateSshSessionResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExposeServiceRequest", + "source": "" + }, + { + "name": "openshell.v1.ServiceEndpointResponse", + "source": "" + } + ], + "method": "ExposeService", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L228-L234", + "request": "openshell.v1.ExposeServiceRequest", + "response": "openshell.v1.ServiceEndpointResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetServiceRequest", + "source": "" + }, + { + "name": "openshell.v1.ServiceEndpointResponse", + "source": "" + } + ], + "method": "GetService", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L237-L243", + "request": "openshell.v1.GetServiceRequest", + "response": "openshell.v1.ServiceEndpointResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListServicesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListServicesResponse", + "source": "" + } + ], + "method": "ListServices", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L246-L252", + "request": "openshell.v1.ListServicesRequest", + "response": "openshell.v1.ListServicesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteServiceRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteServiceResponse", + "source": "" + } + ], + "method": "DeleteService", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L255-L261", + "request": "openshell.v1.DeleteServiceRequest", + "response": "openshell.v1.DeleteServiceResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RevokeSshSessionRequest", + "source": "" + }, + { + "name": "openshell.v1.RevokeSshSessionResponse", + "source": "" + } + ], + "method": "RevokeSshSession", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L264-L270", + "request": "openshell.v1.RevokeSshSessionRequest", + "response": "openshell.v1.RevokeSshSessionResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExecSandboxEvent", + "source": "" + }, + { + "name": "openshell.v1.ExecSandboxRequest", + "source": "" + } + ], + "method": "ExecSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L273-L279", + "request": "openshell.v1.ExecSandboxRequest", + "response": "openshell.v1.ExecSandboxEvent", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": true, + "comment": "Forward one CLI-side TCP connection to a loopback TCP target in a sandbox.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.TcpForwardFrame", + "source": "message TcpForwardFrame {\n oneof payload {\n TcpForwardInit init = 1;\n bytes data = 2;\n }\n}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L282-L288", + "request": "openshell.v1.TcpForwardFrame", + "response": "openshell.v1.TcpForwardFrame", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": true, + "service": "OpenShell", + "signature": "rpc ForwardTcp(stream TcpForwardFrame) returns (stream TcpForwardFrame) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [ + { + "path": "sdk/typescript/src/client.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts" + }, + { + "path": "sdk/typescript/src/client.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts" + }, + { + "path": "sdk/typescript/src/routing.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts" + } + ], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": true, + "comment": "Execute an interactive command with bidirectional stdin/stdout streaming.\nThe first client message MUST carry an ExecSandboxInput with the start\nvariant. Subsequent messages carry stdin bytes or window resize events.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExecSandboxEvent", + "source": "message ExecSandboxEvent {\n oneof payload {\n ExecSandboxStdout stdout = 1;\n ExecSandboxStderr stderr = 2;\n ExecSandboxExit exit = 3;\n }\n}" + }, + { + "name": "openshell.v1.ExecSandboxInput", + "source": "message ExecSandboxInput {\n oneof payload {\n // First message: exec request metadata.\n ExecSandboxRequest start = 1;\n // Subsequent messages: raw stdin bytes.\n bytes stdin = 2;\n // Terminal window size change.\n ExecSandboxWindowResize resize = 3;\n }\n}" + } + ], + "method": "ExecSandboxInteractive", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L293-L299", + "request": "openshell.v1.ExecSandboxInput", + "response": "openshell.v1.ExecSandboxEvent", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs" + } + ], + "server_streaming": true, + "service": "OpenShell", + "signature": "rpc ExecSandboxInteractive(stream ExecSandboxInput) returns (stream ExecSandboxEvent) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [ + { + "path": "sdk/typescript/src/client.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts" + }, + { + "path": "sdk/typescript/src/client.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts" + }, + { + "path": "sdk/typescript/src/routing.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts" + } + ], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.ProviderResponse", + "source": "" + } + ], + "method": "CreateProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L302-L308", + "request": "openshell.v1.CreateProviderRequest", + "response": "openshell.v1.ProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.ProviderResponse", + "source": "" + } + ], + "method": "GetProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L311-L317", + "request": "openshell.v1.GetProviderRequest", + "response": "openshell.v1.ProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "operator", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderCredentialsRequest", + "source": "" + }, + { + "name": "openshell.v1.GetProviderCredentialsResponse", + "source": "" + } + ], + "method": "GetProviderCredentials", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L321-L324", + "request": "openshell.v1.GetProviderCredentialsRequest", + "response": "openshell.v1.GetProviderCredentialsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListProvidersRequest", + "source": "" + }, + { + "name": "openshell.v1.ListProvidersResponse", + "source": "" + } + ], + "method": "ListProviders", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L327-L333", + "request": "openshell.v1.ListProvidersRequest", + "response": "openshell.v1.ListProvidersResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListProviderProfilesResponse", + "source": "" + } + ], + "method": "ListProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L336-L343", + "request": "openshell.v1.ListProviderProfilesRequest", + "response": "openshell.v1.ListProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderProfileRequest", + "source": "" + }, + { + "name": "openshell.v1.ProviderProfileResponse", + "source": "" + } + ], + "method": "GetProviderProfile", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L346-L353", + "request": "openshell.v1.GetProviderProfileRequest", + "response": "openshell.v1.ProviderProfileResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ImportProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.ImportProviderProfilesResponse", + "source": "" + } + ], + "method": "ImportProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L356-L363", + "request": "openshell.v1.ImportProviderProfilesRequest", + "response": "openshell.v1.ImportProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.UpdateProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.UpdateProviderProfilesResponse", + "source": "" + } + ], + "method": "UpdateProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L366-L373", + "request": "openshell.v1.UpdateProviderProfilesRequest", + "response": "openshell.v1.UpdateProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.LintProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.LintProviderProfilesResponse", + "source": "" + } + ], + "method": "LintProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L376-L383", + "request": "openshell.v1.LintProviderProfilesRequest", + "response": "openshell.v1.LintProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ProviderResponse", + "source": "" + }, + { + "name": "openshell.v1.UpdateProviderRequest", + "source": "" + } + ], + "method": "UpdateProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L386-L392", + "request": "openshell.v1.UpdateProviderRequest", + "response": "openshell.v1.ProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderRefreshStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.GetProviderRefreshStatusResponse", + "source": "" + } + ], + "method": "GetProviderRefreshStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L395-L402", + "request": "openshell.v1.GetProviderRefreshStatusRequest", + "response": "openshell.v1.GetProviderRefreshStatusResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ConfigureProviderRefreshRequest", + "source": "" + }, + { + "name": "openshell.v1.ConfigureProviderRefreshResponse", + "source": "" + } + ], + "method": "ConfigureProviderRefresh", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L405-L412", + "request": "openshell.v1.ConfigureProviderRefreshRequest", + "response": "openshell.v1.ConfigureProviderRefreshResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RotateProviderCredentialRequest", + "source": "" + }, + { + "name": "openshell.v1.RotateProviderCredentialResponse", + "source": "" + } + ], + "method": "RotateProviderCredential", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L415-L422", + "request": "openshell.v1.RotateProviderCredentialRequest", + "response": "openshell.v1.RotateProviderCredentialResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteProviderRefreshRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteProviderRefreshResponse", + "source": "" + } + ], + "method": "DeleteProviderRefresh", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L425-L432", + "request": "openshell.v1.DeleteProviderRefreshRequest", + "response": "openshell.v1.DeleteProviderRefreshResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteProviderResponse", + "source": "" + } + ], + "method": "DeleteProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L435-L441", + "request": "openshell.v1.DeleteProviderRequest", + "response": "openshell.v1.DeleteProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteProviderProfileRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteProviderProfileResponse", + "source": "" + } + ], + "method": "DeleteProviderProfile", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L444-L451", + "request": "openshell.v1.DeleteProviderProfileRequest", + "response": "openshell.v1.DeleteProviderProfileResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "dual", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.v1.GetSandboxConfigRequest", + "source": "" + }, + { + "name": "openshell.sandbox.v1.GetSandboxConfigResponse", + "source": "" + } + ], + "method": "GetSandboxConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L456-L463", + "request": "openshell.sandbox.v1.GetSandboxConfigRequest", + "response": "openshell.sandbox.v1.GetSandboxConfigResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.v1.GetGatewayConfigRequest", + "source": "" + }, + { + "name": "openshell.sandbox.v1.GetGatewayConfigResponse", + "source": "" + } + ], + "method": "GetGatewayConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L472-L478", + "request": "openshell.sandbox.v1.GetGatewayConfigRequest", + "response": "openshell.sandbox.v1.GetGatewayConfigResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "dual", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.UpdateConfigRequest", + "source": "" + }, + { + "name": "openshell.v1.UpdateConfigResponse", + "source": "" + } + ], + "method": "UpdateConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L481-L488", + "request": "openshell.v1.UpdateConfigRequest", + "response": "openshell.v1.UpdateConfigResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxPolicyStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxPolicyStatusResponse", + "source": "" + } + ], + "method": "GetSandboxPolicyStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L491-L498", + "request": "openshell.v1.GetSandboxPolicyStatusRequest", + "response": "openshell.v1.GetSandboxPolicyStatusResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxPoliciesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxPoliciesResponse", + "source": "" + } + ], + "method": "ListSandboxPolicies", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L501-L508", + "request": "openshell.v1.ListSandboxPoliciesRequest", + "response": "openshell.v1.ListSandboxPoliciesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportPolicyStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportPolicyStatusResponse", + "source": "" + } + ], + "method": "ReportPolicyStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L511-L516", + "request": "openshell.v1.ReportPolicyStatusRequest", + "response": "openshell.v1.ReportPolicyStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportEndpointStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportEndpointStatusResponse", + "source": "" + } + ], + "method": "ReportEndpointStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L519-L524", + "request": "openshell.v1.ReportEndpointStatusRequest", + "response": "openshell.v1.ReportEndpointStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportProviderReadinessRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportProviderReadinessResponse", + "source": "" + } + ], + "method": "ReportProviderReadiness", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L528-L533", + "request": "openshell.v1.ReportProviderReadinessRequest", + "response": "openshell.v1.ReportProviderReadinessResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportSandboxConfigurationRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportSandboxConfigurationResponse", + "source": "" + } + ], + "method": "ReportSandboxConfiguration", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L536-L539", + "request": "openshell.v1.ReportSandboxConfigurationRequest", + "response": "openshell.v1.ReportSandboxConfigurationResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxProviderEnvironmentRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxProviderEnvironmentResponse", + "source": "" + } + ], + "method": "GetSandboxProviderEnvironment", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L544-L549", + "request": "openshell.v1.GetSandboxProviderEnvironmentRequest", + "response": "openshell.v1.GetSandboxProviderEnvironmentResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExchangeProviderSubjectTokenRequest", + "source": "" + }, + { + "name": "openshell.v1.ExchangeProviderSubjectTokenResponse", + "source": "" + } + ], + "method": "ExchangeProviderSubjectToken", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L553-L558", + "request": "openshell.v1.ExchangeProviderSubjectTokenRequest", + "response": "openshell.v1.ExchangeProviderSubjectTokenResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxLogsRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxLogsResponse", + "source": "" + } + ], + "method": "GetSandboxLogs", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L561-L567", + "request": "openshell.v1.GetSandboxLogsRequest", + "response": "openshell.v1.GetSandboxLogsResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PushSandboxLogsRequest", + "source": "" + }, + { + "name": "openshell.v1.PushSandboxLogsResponse", + "source": "" + } + ], + "method": "PushSandboxLogs", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L570-L574", + "request": "openshell.v1.PushSandboxLogsRequest", + "response": "openshell.v1.PushSandboxLogsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GatewayMessage", + "source": "" + }, + { + "name": "openshell.v1.SupervisorMessage", + "source": "" + } + ], + "method": "ConnectSupervisor", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L585-L589", + "request": "openshell.v1.SupervisorMessage", + "response": "openshell.v1.GatewayMessage", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportMainProcessExitRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportMainProcessExitResponse", + "source": "" + } + ], + "method": "ReportMainProcessExit", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L592-L596", + "request": "openshell.v1.ReportMainProcessExitRequest", + "response": "openshell.v1.ReportMainProcessExitResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.FinalizeMainProcessExitRequest", + "source": "" + }, + { + "name": "openshell.v1.FinalizeMainProcessExitResponse", + "source": "" + } + ], + "method": "FinalizeMainProcessExit", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L599-L604", + "request": "openshell.v1.FinalizeMainProcessExitRequest", + "response": "openshell.v1.FinalizeMainProcessExitResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RelayFrame", + "source": "" + } + ], + "method": "RelayStream", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L617-L621", + "request": "openshell.v1.RelayFrame", + "response": "openshell.v1.RelayFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PeerRelayFrame", + "source": "" + } + ], + "method": "PeerRelay", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L630-L634", + "request": "openshell.v1.PeerRelayFrame", + "response": "openshell.v1.PeerRelayFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportProviderReadinessRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportProviderReadinessResponse", + "source": "" + } + ], + "method": "PeerReportProviderReadiness", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L637-L642", + "request": "openshell.v1.ReportProviderReadinessRequest", + "response": "openshell.v1.ReportProviderReadinessResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportEndpointStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportEndpointStatusResponse", + "source": "" + } + ], + "method": "PeerReportEndpointStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L644-L649", + "request": "openshell.v1.ReportEndpointStatusRequest", + "response": "openshell.v1.ReportEndpointStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxProviderStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxProviderStatusResponse", + "source": "" + } + ], + "method": "PeerGetSandboxProviderStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L651-L656", + "request": "openshell.v1.GetSandboxProviderStatusRequest", + "response": "openshell.v1.GetSandboxProviderStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PeerNotifyConfigUpdateRequest", + "source": "" + }, + { + "name": "openshell.v1.PeerNotifyConfigUpdateResponse", + "source": "" + } + ], + "method": "PeerNotifyConfigUpdate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L660-L665", + "request": "openshell.v1.PeerNotifyConfigUpdateRequest", + "response": "openshell.v1.PeerNotifyConfigUpdateResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxStreamEvent", + "source": "" + }, + { + "name": "openshell.v1.WatchSandboxRequest", + "source": "" + } + ], + "method": "WatchSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L673-L679", + "request": "openshell.v1.WatchSandboxRequest", + "response": "openshell.v1.SandboxStreamEvent", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SubmitPolicyAnalysisRequest", + "source": "" + }, + { + "name": "openshell.v1.SubmitPolicyAnalysisResponse", + "source": "" + } + ], + "method": "SubmitPolicyAnalysis", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L686-L691", + "request": "openshell.v1.SubmitPolicyAnalysisRequest", + "response": "openshell.v1.SubmitPolicyAnalysisResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "dual", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetDraftPolicyRequest", + "source": "" + }, + { + "name": "openshell.v1.GetDraftPolicyResponse", + "source": "" + } + ], + "method": "GetDraftPolicy", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L694-L700", + "request": "openshell.v1.GetDraftPolicyRequest", + "response": "openshell.v1.GetDraftPolicyResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ApproveDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.ApproveDraftChunkResponse", + "source": "" + } + ], + "method": "ApproveDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L703-L710", + "request": "openshell.v1.ApproveDraftChunkRequest", + "response": "openshell.v1.ApproveDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RejectDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.RejectDraftChunkResponse", + "source": "" + } + ], + "method": "RejectDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L713-L720", + "request": "openshell.v1.RejectDraftChunkRequest", + "response": "openshell.v1.RejectDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ApproveAllDraftChunksRequest", + "source": "" + }, + { + "name": "openshell.v1.ApproveAllDraftChunksResponse", + "source": "" + } + ], + "method": "ApproveAllDraftChunks", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L723-L730", + "request": "openshell.v1.ApproveAllDraftChunksRequest", + "response": "openshell.v1.ApproveAllDraftChunksResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.EditDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.EditDraftChunkResponse", + "source": "" + } + ], + "method": "EditDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L733-L739", + "request": "openshell.v1.EditDraftChunkRequest", + "response": "openshell.v1.EditDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.UndoDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.UndoDraftChunkResponse", + "source": "" + } + ], + "method": "UndoDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L742-L748", + "request": "openshell.v1.UndoDraftChunkRequest", + "response": "openshell.v1.UndoDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ClearDraftChunksRequest", + "source": "" + }, + { + "name": "openshell.v1.ClearDraftChunksResponse", + "source": "" + } + ], + "method": "ClearDraftChunks", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L751-L758", + "request": "openshell.v1.ClearDraftChunksRequest", + "response": "openshell.v1.ClearDraftChunksResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetDraftHistoryRequest", + "source": "" + }, + { + "name": "openshell.v1.GetDraftHistoryResponse", + "source": "" + } + ], + "method": "GetDraftHistory", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L761-L767", + "request": "openshell.v1.GetDraftHistoryRequest", + "response": "openshell.v1.GetDraftHistoryResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.IssueSandboxTokenRequest", + "source": "" + }, + { + "name": "openshell.v1.IssueSandboxTokenResponse", + "source": "" + } + ], + "method": "IssueSandboxToken", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L774-L778", + "request": "openshell.v1.IssueSandboxTokenRequest", + "response": "openshell.v1.IssueSandboxTokenResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RefreshSandboxTokenRequest", + "source": "" + }, + { + "name": "openshell.v1.RefreshSandboxTokenResponse", + "source": "" + } + ], + "method": "RefreshSandboxToken", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L786-L791", + "request": "openshell.v1.RefreshSandboxTokenRequest", + "response": "openshell.v1.RefreshSandboxTokenResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": "platform_admin", + "messages": [ + { + "name": "openshell.v1.CreateWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.v1.CreateWorkspaceResponse", + "source": "" + } + ], + "method": "CreateWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L798-L804", + "request": "openshell.v1.CreateWorkspaceRequest", + "response": "openshell.v1.CreateWorkspaceResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.v1.GetWorkspaceResponse", + "source": "" + } + ], + "method": "GetWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L807-L813", + "request": "openshell.v1.GetWorkspaceRequest", + "response": "openshell.v1.GetWorkspaceResponse", + "rust_sdk_refs": [], + "scope": "workspace:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListWorkspacesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListWorkspacesResponse", + "source": "" + } + ], + "method": "ListWorkspaces", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L816-L822", + "request": "openshell.v1.ListWorkspacesRequest", + "response": "openshell.v1.ListWorkspacesResponse", + "rust_sdk_refs": [], + "scope": "workspace:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": "platform_admin", + "messages": [ + { + "name": "openshell.v1.DeleteWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteWorkspaceResponse", + "source": "" + } + ], + "method": "DeleteWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L825-L831", + "request": "openshell.v1.DeleteWorkspaceRequest", + "response": "openshell.v1.DeleteWorkspaceResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.AddWorkspaceMemberRequest", + "source": "" + }, + { + "name": "openshell.v1.AddWorkspaceMemberResponse", + "source": "" + } + ], + "method": "AddWorkspaceMember", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L834-L840", + "request": "openshell.v1.AddWorkspaceMemberRequest", + "response": "openshell.v1.AddWorkspaceMemberResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RemoveWorkspaceMemberRequest", + "source": "" + }, + { + "name": "openshell.v1.RemoveWorkspaceMemberResponse", + "source": "" + } + ], + "method": "RemoveWorkspaceMember", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L843-L849", + "request": "openshell.v1.RemoveWorkspaceMemberRequest", + "response": "openshell.v1.RemoveWorkspaceMemberResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListWorkspaceMembersRequest", + "source": "" + }, + { + "name": "openshell.v1.ListWorkspaceMembersResponse", + "source": "" + } + ], + "method": "ListWorkspaceMembers", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L852-L858", + "request": "openshell.v1.ListWorkspaceMembersRequest", + "response": "openshell.v1.ListWorkspaceMembersResponse", + "rust_sdk_refs": [], + "scope": "workspace:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Read installed, unexpired application routes in one explicit workspace.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetServiceRouteSnapshotRequest", + "source": "message GetServiceRouteSnapshotRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}" + }, + { + "name": "openshell.v1.GetServiceRouteSnapshotResponse", + "source": "message GetServiceRouteSnapshotResponse {\n ServiceRouteSnapshot snapshot = 1;\n}" + } + ], + "method": "GetServiceRouteSnapshot", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L864-L870", + "request": "openshell.v1.GetServiceRouteSnapshotRequest", + "response": "openshell.v1.GetServiceRouteSnapshotResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/service_discovery.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs" + } + ], + "server_streaming": false, + "service": "ServiceDiscovery", + "signature": "rpc GetServiceRouteSnapshot(GetServiceRouteSnapshotRequest) returns (GetServiceRouteSnapshotResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Full replacement views; reauthorize during the bounded watch lifetime.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.WatchServiceRoutesRequest", + "source": "message WatchServiceRoutesRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}" + }, + { + "name": "openshell.v1.WatchServiceRoutesResponse", + "source": "message WatchServiceRoutesResponse {\n ServiceRouteSnapshot snapshot = 1;\n}" + } + ], + "method": "WatchServiceRoutes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L873-L879", + "request": "openshell.v1.WatchServiceRoutesRequest", + "response": "openshell.v1.WatchServiceRoutesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/service_discovery.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs" + } + ], + "server_streaming": true, + "service": "ServiceDiscovery", + "signature": "rpc WatchServiceRoutes(WatchServiceRoutesRequest) returns (stream WatchServiceRoutesResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Update the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "message SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}" + }, + { + "name": "openshell.v1.UpdateSandboxRequest", + "source": "message UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}" + } + ], + "method": "UpdateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896", + "request": "openshell.v1.UpdateSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/sandbox/image_update_tests.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs" + } + ], + "server_streaming": false, + "service": "SandboxUpdates", + "signature": "rpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [ + { + "path": "sdk/typescript/src/raw.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts" + } + ], + "workspace_role": "user" + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "gateway_interceptor.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.gateway_interceptor.v1.DescribeRequest", + "source": "" + }, + { + "name": "openshell.gateway_interceptor.v1.InterceptorManifest", + "source": "" + } + ], + "method": "Describe", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/gateway_interceptor.proto#L17-L17", + "request": "openshell.gateway_interceptor.v1.DescribeRequest", + "response": "openshell.gateway_interceptor.v1.InterceptorManifest", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "GatewayInterceptor", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "gateway_interceptor.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.gateway_interceptor.v1.ProviderProfileSnapshot", + "source": "" + }, + { + "name": "openshell.gateway_interceptor.v1.ProviderProfileSnapshotRequest", + "source": "" + } + ], + "method": "SnapshotProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/gateway_interceptor.proto#L21-L22", + "request": "openshell.gateway_interceptor.v1.ProviderProfileSnapshotRequest", + "response": "openshell.gateway_interceptor.v1.ProviderProfileSnapshot", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "GatewayInterceptor", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "gateway_interceptor.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.gateway_interceptor.v1.InterceptorEvaluation", + "source": "" + }, + { + "name": "openshell.gateway_interceptor.v1.InterceptorResult", + "source": "" + } + ], + "method": "Evaluate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/gateway_interceptor.proto#L26-L26", + "request": "openshell.gateway_interceptor.v1.InterceptorEvaluation", + "response": "openshell.gateway_interceptor.v1.InterceptorResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "GatewayInterceptor", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.DescribeIsolationBackendRequest", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.DescribeIsolationBackendResponse", + "source": "" + } + ], + "method": "Describe", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L38-L38", + "request": "openshell.sandbox.backend.v1.DescribeIsolationBackendRequest", + "response": "openshell.sandbox.backend.v1.DescribeIsolationBackendResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.OpenBoundaryRequest", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "source": "" + } + ], + "method": "OpenBoundary", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L54-L54", + "request": "openshell.sandbox.backend.v1.OpenBoundaryRequest", + "response": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.SuspendBoundaryRequest", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.SuspendBoundaryResponse", + "source": "" + } + ], + "method": "SuspendBoundary", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L61-L61", + "request": "openshell.sandbox.backend.v1.SuspendBoundaryRequest", + "response": "openshell.sandbox.backend.v1.SuspendBoundaryResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.ResumeBoundaryRequest", + "source": "" + } + ], + "method": "ResumeBoundary", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L71-L71", + "request": "openshell.sandbox.backend.v1.ResumeBoundaryRequest", + "response": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "sandbox_protocol.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.protocol.v1.ExchangeFrame", + "source": "" + } + ], + "method": "Exchange", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/sandbox_protocol.proto#L25-L25", + "request": "openshell.sandbox.protocol.v1.ExchangeFrame", + "response": "openshell.sandbox.protocol.v1.ExchangeFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SandboxProtocol", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "sandbox_protocol.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.protocol.v1.MediateFrame", + "source": "" + } + ], + "method": "Mediate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/sandbox_protocol.proto#L26-L26", + "request": "openshell.sandbox.protocol.v1.MediateFrame", + "response": "openshell.sandbox.protocol.v1.MediateFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SandboxProtocol", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "supervisor", + "client_streaming": true, + "comment": "", + "file": "supervisor_host.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.supervisor.host.v1.HostGatewayMessage", + "source": "" + }, + { + "name": "openshell.supervisor.host.v1.HostMessage", + "source": "" + } + ], + "method": "Attach", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_host.proto#L30-L34", + "request": "openshell.supervisor.host.v1.HostMessage", + "response": "openshell.supervisor.host.v1.HostGatewayMessage", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SupervisorHost", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.MiddlewareDescribeRequest", + "source": "" + }, + { + "name": "openshell.middleware.v1.MiddlewareManifest", + "source": "" + } + ], + "method": "Describe", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L32-L32", + "request": "openshell.middleware.v1.MiddlewareDescribeRequest", + "response": "openshell.middleware.v1.MiddlewareManifest", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.ValidateConfigRequest", + "source": "" + }, + { + "name": "openshell.middleware.v1.ValidateConfigResponse", + "source": "" + } + ], + "method": "ValidateConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L35-L35", + "request": "openshell.middleware.v1.ValidateConfigRequest", + "response": "openshell.middleware.v1.ValidateConfigResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpRequestEvaluation", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpRequestResult", + "source": "" + } + ], + "method": "EvaluateHttpRequest", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L42-L44", + "request": "openshell.middleware.v1.HttpRequestEvaluation", + "response": "openshell.middleware.v1.HttpRequestResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.WebSocketSessionEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.WebSocketSessionEventResult", + "source": "" + } + ], + "method": "EvaluateWebSocketSession", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L53-L54", + "request": "openshell.middleware.v1.WebSocketSessionEvent", + "response": "openshell.middleware.v1.WebSocketSessionEventResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpRequestHookEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpRequestHookResult", + "source": "" + } + ], + "method": "EvaluateHttpRequestHook", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L67-L68", + "request": "openshell.middleware.v1.HttpRequestHookEvent", + "response": "openshell.middleware.v1.HttpRequestHookResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "HttpHooks", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpResponseHookEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpResponseHookResult", + "source": "" + } + ], + "method": "EvaluateHttpResponseHook", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L74-L75", + "request": "openshell.middleware.v1.HttpResponseHookEvent", + "response": "openshell.middleware.v1.HttpResponseHookResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "HttpHooks", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpResponseEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpResponseEventResult", + "source": "" + } + ], + "method": "Evaluate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L97-L100", + "request": "openshell.middleware.v1.HttpResponseEvent", + "response": "openshell.middleware.v1.HttpResponseEventResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "HttpResponsePreReturn", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.1.9" +} diff --git a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json.license b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/idempotent/expected.json b/hack/automation/testdata/rpc-issues/planner/idempotent/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/idempotent/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/idempotent/expected.json.license b/hack/automation/testdata/rpc-issues/planner/idempotent/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/idempotent/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/idempotent/input.json b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json new file mode 100644 index 0000000..52a70a3 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json @@ -0,0 +1,3981 @@ +{ + "built": [ + "OpenShell.AddWorkspaceMember", + "OpenShell.ApproveAllDraftChunks", + "OpenShell.ApproveDraftChunk", + "OpenShell.AttachSandboxProvider", + "OpenShell.BeginRootfsTarStaging", + "OpenShell.ClearDraftChunks", + "OpenShell.ConfigureProviderRefresh", + "OpenShell.ConnectSupervisor", + "OpenShell.CreateProvider", + "OpenShell.CreateSandbox", + "OpenShell.CreateSandboxTemplate", + "OpenShell.CreateSshSession", + "OpenShell.CreateWorkspace", + "OpenShell.DeleteProvider", + "OpenShell.DeleteProviderProfile", + "OpenShell.DeleteProviderRefresh", + "OpenShell.DeleteSandbox", + "OpenShell.DeleteSandboxTemplate", + "OpenShell.DeleteService", + "OpenShell.DeleteWorkspace", + "OpenShell.DetachSandboxProvider", + "OpenShell.EditDraftChunk", + "OpenShell.ExchangeProviderSubjectToken", + "OpenShell.ExecSandbox", + "OpenShell.ExecSandboxInteractive", + "OpenShell.ExposeService", + "OpenShell.FinalizeMainProcessExit", + "OpenShell.ForwardTcp", + "OpenShell.GetCurrentUser", + "OpenShell.GetDraftHistory", + "OpenShell.GetDraftPolicy", + "OpenShell.GetGatewayConfig", + "OpenShell.GetGatewayInfo", + "OpenShell.GetProvider", + "OpenShell.GetProviderCredentials", + "OpenShell.GetProviderProfile", + "OpenShell.GetProviderRefreshStatus", + "OpenShell.GetSandbox", + "OpenShell.GetSandboxConfig", + "OpenShell.GetSandboxLogs", + "OpenShell.GetSandboxPolicyStatus", + "OpenShell.GetSandboxProviderEnvironment", + "OpenShell.GetSandboxProviderStatus", + "OpenShell.GetSandboxTemplate", + "OpenShell.GetService", + "OpenShell.GetWorkspace", + "OpenShell.Health", + "OpenShell.ImportProviderProfiles", + "OpenShell.IssueSandboxToken", + "OpenShell.LintProviderProfiles", + "OpenShell.ListProviderProfiles", + "OpenShell.ListProviders", + "OpenShell.ListSandboxes", + "OpenShell.ListSandboxPolicies", + "OpenShell.ListSandboxProviders", + "OpenShell.ListSandboxTemplates", + "OpenShell.ListServices", + "OpenShell.ListWorkspaceMembers", + "OpenShell.ListWorkspaces", + "OpenShell.PeerGetSandboxProviderStatus", + "OpenShell.PeerNotifyConfigUpdate", + "OpenShell.PeerRelay", + "OpenShell.PeerReportEndpointStatus", + "OpenShell.PeerReportProviderReadiness", + "OpenShell.PushSandboxLogs", + "OpenShell.RefreshSandboxToken", + "OpenShell.RejectDraftChunk", + "OpenShell.RelayStream", + "OpenShell.RemoveWorkspaceMember", + "OpenShell.ReportEndpointStatus", + "OpenShell.ReportMainProcessExit", + "OpenShell.ReportPolicyStatus", + "OpenShell.ReportProviderReadiness", + "OpenShell.ReportSandboxConfiguration", + "OpenShell.ResumeSandbox", + "OpenShell.RevokeSshSession", + "OpenShell.RotateProviderCredential", + "OpenShell.StartSandbox", + "OpenShell.StopSandbox", + "OpenShell.SubmitPolicyAnalysis", + "OpenShell.SuspendSandbox", + "OpenShell.UndoDraftChunk", + "OpenShell.UpdateConfig", + "OpenShell.UpdateProvider", + "OpenShell.UpdateProviderProfiles", + "OpenShell.WatchSandbox", + "SandboxUpdates.UpdateSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.AddWorkspaceMember", + "OpenShell.ApproveAllDraftChunks", + "OpenShell.ApproveDraftChunk", + "OpenShell.AttachSandboxProvider", + "OpenShell.ClearDraftChunks", + "OpenShell.ConfigureProviderRefresh", + "OpenShell.CreateProvider", + "OpenShell.CreateSandbox", + "OpenShell.CreateSandboxTemplate", + "OpenShell.CreateSshSession", + "OpenShell.CreateWorkspace", + "OpenShell.DeleteProvider", + "OpenShell.DeleteProviderProfile", + "OpenShell.DeleteProviderRefresh", + "OpenShell.DeleteSandbox", + "OpenShell.DeleteSandboxTemplate", + "OpenShell.DeleteService", + "OpenShell.DeleteWorkspace", + "OpenShell.DetachSandboxProvider", + "OpenShell.EditDraftChunk", + "OpenShell.ExecSandbox", + "OpenShell.ExposeService", + "OpenShell.GetCurrentUser", + "OpenShell.GetDraftHistory", + "OpenShell.GetDraftPolicy", + "OpenShell.GetGatewayConfig", + "OpenShell.GetGatewayInfo", + "OpenShell.GetProvider", + "OpenShell.GetProviderProfile", + "OpenShell.GetProviderRefreshStatus", + "OpenShell.GetSandbox", + "OpenShell.GetSandboxConfig", + "OpenShell.GetSandboxLogs", + "OpenShell.GetSandboxPolicyStatus", + "OpenShell.GetSandboxTemplate", + "OpenShell.GetService", + "OpenShell.GetWorkspace", + "OpenShell.Health", + "OpenShell.ImportProviderProfiles", + "OpenShell.LintProviderProfiles", + "OpenShell.ListProviderProfiles", + "OpenShell.ListProviders", + "OpenShell.ListSandboxes", + "OpenShell.ListSandboxPolicies", + "OpenShell.ListSandboxProviders", + "OpenShell.ListSandboxTemplates", + "OpenShell.ListServices", + "OpenShell.ListWorkspaceMembers", + "OpenShell.ListWorkspaces", + "OpenShell.RejectDraftChunk", + "OpenShell.RemoveWorkspaceMember", + "OpenShell.ResumeSandbox", + "OpenShell.RevokeSshSession", + "OpenShell.RotateProviderCredential", + "OpenShell.StartSandbox", + "OpenShell.StopSandbox", + "OpenShell.SuspendSandbox", + "OpenShell.UndoDraftChunk", + "OpenShell.UpdateConfig", + "OpenShell.UpdateProvider", + "OpenShell.UpdateProviderProfiles", + "OpenShell.WatchSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nCore `v0.1.9` has `OpenShell.BeginRootfsTarStaging`, a user-facing RPC the Go SDK does not wrap yet.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 100, + "state": "OPEN", + "title": "feat(sdk): wrap OpenShell.BeginRootfsTarStaging (core v0.1.9)" + }, + { + "body": "\n\nCore `v0.1.9` has `OpenShell.ExecSandboxInteractive`, a user-facing RPC the Go SDK does not wrap yet.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 101, + "state": "OPEN", + "title": "feat(sdk): wrap OpenShell.ExecSandboxInteractive (core v0.1.9)" + }, + { + "body": "\n\nCore `v0.1.9` has `OpenShell.ForwardTcp`, a user-facing RPC the Go SDK does not wrap yet.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 102, + "state": "OPEN", + "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.1.9)" + }, + { + "body": "\n\nCore `v0.1.9` has `OpenShell.GetSandboxProviderStatus`, a user-facing RPC the Go SDK does not wrap yet.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 103, + "state": "OPEN", + "title": "feat(sdk): wrap OpenShell.GetSandboxProviderStatus (core v0.1.9)" + }, + { + "body": "\n\nCore `v0.1.9` has 1 user-facing method(s) in the `SandboxUpdates` service that the Go SDK does not wrap yet.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 104, + "state": "OPEN", + "title": "feat(sdk): wrap the SandboxUpdates service (core v0.1.9)" + }, + { + "body": "\n\nCore `v0.1.9` has 2 user-facing method(s) in the `ServiceDiscovery` service that the Go SDK does not wrap yet.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 105, + "state": "OPEN", + "title": "feat(sdk): wrap the ServiceDiscovery service (core v0.1.9)" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.GetCapabilitiesRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.GetCapabilitiesResponse", + "source": "" + } + ], + "method": "GetCapabilities", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L27-L27", + "request": "openshell.compute.v1.GetCapabilitiesRequest", + "response": "openshell.compute.v1.GetCapabilitiesResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.AuthenticateSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.AuthenticateSandboxResponse", + "source": "" + } + ], + "method": "AuthenticateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L32-L33", + "request": "openshell.compute.v1.AuthenticateSandboxRequest", + "response": "openshell.compute.v1.AuthenticateSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.ValidateSandboxCreateRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.ValidateSandboxCreateResponse", + "source": "" + } + ], + "method": "ValidateSandboxCreate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L36-L37", + "request": "openshell.compute.v1.ValidateSandboxCreateRequest", + "response": "openshell.compute.v1.ValidateSandboxCreateResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.GetSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.GetSandboxResponse", + "source": "" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L40-L40", + "request": "openshell.compute.v1.GetSandboxRequest", + "response": "openshell.compute.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.ListSandboxesRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.ListSandboxesResponse", + "source": "" + } + ], + "method": "ListSandboxes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L43-L43", + "request": "openshell.compute.v1.ListSandboxesRequest", + "response": "openshell.compute.v1.ListSandboxesResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.CreateSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.CreateSandboxResponse", + "source": "" + } + ], + "method": "CreateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L46-L46", + "request": "openshell.compute.v1.CreateSandboxRequest", + "response": "openshell.compute.v1.CreateSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.StopSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.StopSandboxResponse", + "source": "" + } + ], + "method": "StopSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L49-L49", + "request": "openshell.compute.v1.StopSandboxRequest", + "response": "openshell.compute.v1.StopSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.StartSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.StartSandboxResponse", + "source": "" + } + ], + "method": "StartSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L52-L52", + "request": "openshell.compute.v1.StartSandboxRequest", + "response": "openshell.compute.v1.StartSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.SuspendSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.SuspendSandboxResponse", + "source": "" + } + ], + "method": "SuspendSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L61-L61", + "request": "openshell.compute.v1.SuspendSandboxRequest", + "response": "openshell.compute.v1.SuspendSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.DeleteSandboxRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.DeleteSandboxResponse", + "source": "" + } + ], + "method": "DeleteSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L64-L64", + "request": "openshell.compute.v1.DeleteSandboxRequest", + "response": "openshell.compute.v1.DeleteSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.WatchSandboxesEvent", + "source": "" + }, + { + "name": "openshell.compute.v1.WatchSandboxesRequest", + "source": "" + } + ], + "method": "WatchSandboxes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L67-L67", + "request": "openshell.compute.v1.WatchSandboxesRequest", + "response": "openshell.compute.v1.WatchSandboxesEvent", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.EnsureWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.EnsureWorkspaceResponse", + "source": "" + } + ], + "method": "EnsureWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L71-L71", + "request": "openshell.compute.v1.EnsureWorkspaceRequest", + "response": "openshell.compute.v1.EnsureWorkspaceResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.DeleteWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.DeleteWorkspaceResponse", + "source": "" + } + ], + "method": "DeleteWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L74-L74", + "request": "openshell.compute.v1.DeleteWorkspaceRequest", + "response": "openshell.compute.v1.DeleteWorkspaceResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.ResolveSupervisorAppEndpointRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.ResolveSupervisorAppEndpointResponse", + "source": "" + } + ], + "method": "ResolveSupervisorAppEndpoint", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L83-L84", + "request": "openshell.compute.v1.ResolveSupervisorAppEndpointRequest", + "response": "openshell.compute.v1.ResolveSupervisorAppEndpointResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriverAppEndpoints", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.compute.v1.UpdateSandboxConfigurationRequest", + "source": "" + }, + { + "name": "openshell.compute.v1.UpdateSandboxConfigurationResponse", + "source": "" + } + ], + "method": "UpdateSandboxConfiguration", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/compute_driver.proto#L92-L93", + "request": "openshell.compute.v1.UpdateSandboxConfigurationRequest", + "response": "openshell.compute.v1.UpdateSandboxConfigurationResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "ComputeDriverConfigurationUpdates", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.GetCredentialDriverCapabilitiesRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.GetCredentialDriverCapabilitiesResponse", + "source": "" + } + ], + "method": "GetCapabilities", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L20-L21", + "request": "openshell.credentials.v1.GetCredentialDriverCapabilitiesRequest", + "response": "openshell.credentials.v1.GetCredentialDriverCapabilitiesResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.StoreCredentialRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.StoreCredentialResponse", + "source": "" + } + ], + "method": "StoreCredential", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L24-L24", + "request": "openshell.credentials.v1.StoreCredentialRequest", + "response": "openshell.credentials.v1.StoreCredentialResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.DeleteCredentialRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.DeleteCredentialResponse", + "source": "" + } + ], + "method": "DeleteCredential", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L27-L27", + "request": "openshell.credentials.v1.DeleteCredentialRequest", + "response": "openshell.credentials.v1.DeleteCredentialResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.ResolveCredentialsRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.ResolveCredentialsResponse", + "source": "" + } + ], + "method": "ResolveCredentials", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L30-L31", + "request": "openshell.credentials.v1.ResolveCredentialsRequest", + "response": "openshell.credentials.v1.ResolveCredentialsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "credential_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.credentials.v1.ListCredentialsRequest", + "source": "" + }, + { + "name": "openshell.credentials.v1.ListCredentialsResponse", + "source": "" + } + ], + "method": "ListCredentials", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/credential_driver.proto#L34-L34", + "request": "openshell.credentials.v1.ListCredentialsRequest", + "response": "openshell.credentials.v1.ListCredentialsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "CredentialDriver", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "unauthenticated", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.HealthRequest", + "source": "" + }, + { + "name": "openshell.v1.HealthResponse", + "source": "" + } + ], + "method": "Health", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L25-L29", + "request": "openshell.v1.HealthRequest", + "response": "openshell.v1.HealthResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetCurrentUserRequest", + "source": "" + }, + { + "name": "openshell.v1.GetCurrentUserResponse", + "source": "" + } + ], + "method": "GetCurrentUser", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L32-L36", + "request": "openshell.v1.GetCurrentUserRequest", + "response": "openshell.v1.GetCurrentUserResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": "platform_admin", + "messages": [ + { + "name": "openshell.v1.GetGatewayInfoRequest", + "source": "" + }, + { + "name": "openshell.v1.GetGatewayInfoResponse", + "source": "" + } + ], + "method": "GetGatewayInfo", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L39-L45", + "request": "openshell.v1.GetGatewayInfoRequest", + "response": "openshell.v1.GetGatewayInfoResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxResponse", + "source": "" + } + ], + "method": "CreateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L48-L54", + "request": "openshell.v1.CreateSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Allocate a gateway-owned staging slot for a local rootfs tar archive.\n\nThe gateway creates a request-scoped directory inside the compute driver's\nstaging root and returns an opaque single-use token plus the absolute path\nthe client must write the archive to. The token is then passed as\n`template.driver_config..rootfs_tar_staging_token` on\nCreateSandbox; callers never name a filesystem path themselves. Only a\nclient sharing the gateway's filesystem can complete the upload.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BeginRootfsTarStagingRequest", + "source": "message BeginRootfsTarStagingRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 3;\n // Base file name of the local archive. The gateway uses it only to name the\n // staged file; path separators and traversal components are rejected.\n string file_name = 1;\n // Size of the local archive in bytes, checked against the driver limit\n // before the gateway allocates a slot.\n uint64 size_bytes = 2;\n}" + }, + { + "name": "openshell.v1.BeginRootfsTarStagingResponse", + "source": "message BeginRootfsTarStagingResponse {\n reserved 4;\n reserved \"expires_at_ms\";\n // Opaque single-use token. Pass it as\n // `template.driver_config..rootfs_tar_staging_token` on\n // CreateSandbox. The first CreateSandbox presenting it consumes it.\n string staging_token = 1;\n // Absolute path on the gateway host the client must write the archive to.\n string upload_path = 2;\n // Maximum accepted archive size in bytes, enforced again by the driver.\n uint64 max_bytes = 3;\n // Wall-clock deadline after which the gateway reclaims the slot.\n google.protobuf.Timestamp expiration_time = 104;\n}" + } + ], + "method": "BeginRootfsTarStaging", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L64-L71", + "request": "openshell.v1.BeginRootfsTarStagingRequest", + "response": "openshell.v1.BeginRootfsTarStagingResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc BeginRootfsTarStaging(BeginRootfsTarStagingRequest)\n returns (BeginRootfsTarStagingResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxResponse", + "source": "" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L74-L80", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxesResponse", + "source": "" + } + ], + "method": "ListSandboxes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L83-L89", + "request": "openshell.v1.ListSandboxesRequest", + "response": "openshell.v1.ListSandboxesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSandboxTemplateRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxTemplateResponse", + "source": "" + } + ], + "method": "CreateSandboxTemplate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L92-L99", + "request": "openshell.v1.CreateSandboxTemplateRequest", + "response": "openshell.v1.SandboxTemplateResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxTemplateRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxTemplateResponse", + "source": "" + } + ], + "method": "GetSandboxTemplate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L102-L109", + "request": "openshell.v1.GetSandboxTemplateRequest", + "response": "openshell.v1.SandboxTemplateResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxTemplatesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxTemplatesResponse", + "source": "" + } + ], + "method": "ListSandboxTemplates", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L112-L119", + "request": "openshell.v1.ListSandboxTemplatesRequest", + "response": "openshell.v1.ListSandboxTemplatesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteSandboxTemplateRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteSandboxTemplateResponse", + "source": "" + } + ], + "method": "DeleteSandboxTemplate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L122-L129", + "request": "openshell.v1.DeleteSandboxTemplateRequest", + "response": "openshell.v1.DeleteSandboxTemplateResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxProvidersRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxProvidersResponse", + "source": "" + } + ], + "method": "ListSandboxProviders", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L132-L139", + "request": "openshell.v1.ListSandboxProvidersRequest", + "response": "openshell.v1.ListSandboxProvidersResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.AttachSandboxProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.AttachSandboxProviderResponse", + "source": "" + } + ], + "method": "AttachSandboxProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L142-L149", + "request": "openshell.v1.AttachSandboxProviderRequest", + "response": "openshell.v1.AttachSandboxProviderResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DetachSandboxProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.DetachSandboxProviderResponse", + "source": "" + } + ], + "method": "DetachSandboxProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L152-L159", + "request": "openshell.v1.DetachSandboxProviderRequest", + "response": "openshell.v1.DetachSandboxProviderResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Inspect the installed authority for one sandbox provider mutation.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxProviderStatusRequest", + "source": "message GetSandboxProviderStatusRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 4;\n string sandbox = 1;\n string provider = 2;\n string receipt_id = 3;\n}" + }, + { + "name": "openshell.v1.GetSandboxProviderStatusResponse", + "source": "message GetSandboxProviderStatusResponse {\n ProviderReadinessStatus status = 1;\n}" + } + ], + "method": "GetSandboxProviderStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L162-L169", + "request": "openshell.v1.GetSandboxProviderStatusRequest", + "response": "openshell.v1.GetSandboxProviderStatusResponse", + "rust_sdk_refs": [ + { + "path": "crates/openshell-sdk/src/provider_readiness.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-sdk/src/provider_readiness.rs" + } + ], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/gateway_metrics.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/gateway_metrics.rs" + }, + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/supervisor_session.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/supervisor_session.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandboxProviderStatus(GetSandboxProviderStatusRequest)\n returns (GetSandboxProviderStatusResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteSandboxResponse", + "source": "" + } + ], + "method": "DeleteSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L172-L178", + "request": "openshell.v1.DeleteSandboxRequest", + "response": "openshell.v1.DeleteSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "" + }, + { + "name": "openshell.v1.StopSandboxRequest", + "source": "" + } + ], + "method": "StopSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L181-L187", + "request": "openshell.v1.StopSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "" + }, + { + "name": "openshell.v1.StartSandboxRequest", + "source": "" + } + ], + "method": "StartSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L190-L196", + "request": "openshell.v1.StartSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "" + }, + { + "name": "openshell.v1.SuspendSandboxRequest", + "source": "" + } + ], + "method": "SuspendSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L201-L207", + "request": "openshell.v1.SuspendSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ResumeSandboxRequest", + "source": "" + }, + { + "name": "openshell.v1.SandboxResponse", + "source": "" + } + ], + "method": "ResumeSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L210-L216", + "request": "openshell.v1.ResumeSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSshSessionRequest", + "source": "" + }, + { + "name": "openshell.v1.CreateSshSessionResponse", + "source": "" + } + ], + "method": "CreateSshSession", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L219-L225", + "request": "openshell.v1.CreateSshSessionRequest", + "response": "openshell.v1.CreateSshSessionResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExposeServiceRequest", + "source": "" + }, + { + "name": "openshell.v1.ServiceEndpointResponse", + "source": "" + } + ], + "method": "ExposeService", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L228-L234", + "request": "openshell.v1.ExposeServiceRequest", + "response": "openshell.v1.ServiceEndpointResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetServiceRequest", + "source": "" + }, + { + "name": "openshell.v1.ServiceEndpointResponse", + "source": "" + } + ], + "method": "GetService", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L237-L243", + "request": "openshell.v1.GetServiceRequest", + "response": "openshell.v1.ServiceEndpointResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListServicesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListServicesResponse", + "source": "" + } + ], + "method": "ListServices", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L246-L252", + "request": "openshell.v1.ListServicesRequest", + "response": "openshell.v1.ListServicesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteServiceRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteServiceResponse", + "source": "" + } + ], + "method": "DeleteService", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L255-L261", + "request": "openshell.v1.DeleteServiceRequest", + "response": "openshell.v1.DeleteServiceResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RevokeSshSessionRequest", + "source": "" + }, + { + "name": "openshell.v1.RevokeSshSessionResponse", + "source": "" + } + ], + "method": "RevokeSshSession", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L264-L270", + "request": "openshell.v1.RevokeSshSessionRequest", + "response": "openshell.v1.RevokeSshSessionResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExecSandboxEvent", + "source": "" + }, + { + "name": "openshell.v1.ExecSandboxRequest", + "source": "" + } + ], + "method": "ExecSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L273-L279", + "request": "openshell.v1.ExecSandboxRequest", + "response": "openshell.v1.ExecSandboxEvent", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": true, + "comment": "Forward one CLI-side TCP connection to a loopback TCP target in a sandbox.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.TcpForwardFrame", + "source": "message TcpForwardFrame {\n oneof payload {\n TcpForwardInit init = 1;\n bytes data = 2;\n }\n}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L282-L288", + "request": "openshell.v1.TcpForwardFrame", + "response": "openshell.v1.TcpForwardFrame", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": true, + "service": "OpenShell", + "signature": "rpc ForwardTcp(stream TcpForwardFrame) returns (stream TcpForwardFrame) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [ + { + "path": "sdk/typescript/src/client.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts" + }, + { + "path": "sdk/typescript/src/client.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts" + }, + { + "path": "sdk/typescript/src/routing.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts" + } + ], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": true, + "comment": "Execute an interactive command with bidirectional stdin/stdout streaming.\nThe first client message MUST carry an ExecSandboxInput with the start\nvariant. Subsequent messages carry stdin bytes or window resize events.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExecSandboxEvent", + "source": "message ExecSandboxEvent {\n oneof payload {\n ExecSandboxStdout stdout = 1;\n ExecSandboxStderr stderr = 2;\n ExecSandboxExit exit = 3;\n }\n}" + }, + { + "name": "openshell.v1.ExecSandboxInput", + "source": "message ExecSandboxInput {\n oneof payload {\n // First message: exec request metadata.\n ExecSandboxRequest start = 1;\n // Subsequent messages: raw stdin bytes.\n bytes stdin = 2;\n // Terminal window size change.\n ExecSandboxWindowResize resize = 3;\n }\n}" + } + ], + "method": "ExecSandboxInteractive", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L293-L299", + "request": "openshell.v1.ExecSandboxInput", + "response": "openshell.v1.ExecSandboxEvent", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs" + } + ], + "server_streaming": true, + "service": "OpenShell", + "signature": "rpc ExecSandboxInteractive(stream ExecSandboxInput) returns (stream ExecSandboxEvent) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [ + { + "path": "sdk/typescript/src/client.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts" + }, + { + "path": "sdk/typescript/src/client.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts" + }, + { + "path": "sdk/typescript/src/routing.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts" + } + ], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.ProviderResponse", + "source": "" + } + ], + "method": "CreateProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L302-L308", + "request": "openshell.v1.CreateProviderRequest", + "response": "openshell.v1.ProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.ProviderResponse", + "source": "" + } + ], + "method": "GetProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L311-L317", + "request": "openshell.v1.GetProviderRequest", + "response": "openshell.v1.ProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "operator", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderCredentialsRequest", + "source": "" + }, + { + "name": "openshell.v1.GetProviderCredentialsResponse", + "source": "" + } + ], + "method": "GetProviderCredentials", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L321-L324", + "request": "openshell.v1.GetProviderCredentialsRequest", + "response": "openshell.v1.GetProviderCredentialsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListProvidersRequest", + "source": "" + }, + { + "name": "openshell.v1.ListProvidersResponse", + "source": "" + } + ], + "method": "ListProviders", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L327-L333", + "request": "openshell.v1.ListProvidersRequest", + "response": "openshell.v1.ListProvidersResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListProviderProfilesResponse", + "source": "" + } + ], + "method": "ListProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L336-L343", + "request": "openshell.v1.ListProviderProfilesRequest", + "response": "openshell.v1.ListProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderProfileRequest", + "source": "" + }, + { + "name": "openshell.v1.ProviderProfileResponse", + "source": "" + } + ], + "method": "GetProviderProfile", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L346-L353", + "request": "openshell.v1.GetProviderProfileRequest", + "response": "openshell.v1.ProviderProfileResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ImportProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.ImportProviderProfilesResponse", + "source": "" + } + ], + "method": "ImportProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L356-L363", + "request": "openshell.v1.ImportProviderProfilesRequest", + "response": "openshell.v1.ImportProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.UpdateProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.UpdateProviderProfilesResponse", + "source": "" + } + ], + "method": "UpdateProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L366-L373", + "request": "openshell.v1.UpdateProviderProfilesRequest", + "response": "openshell.v1.UpdateProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.LintProviderProfilesRequest", + "source": "" + }, + { + "name": "openshell.v1.LintProviderProfilesResponse", + "source": "" + } + ], + "method": "LintProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L376-L383", + "request": "openshell.v1.LintProviderProfilesRequest", + "response": "openshell.v1.LintProviderProfilesResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ProviderResponse", + "source": "" + }, + { + "name": "openshell.v1.UpdateProviderRequest", + "source": "" + } + ], + "method": "UpdateProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L386-L392", + "request": "openshell.v1.UpdateProviderRequest", + "response": "openshell.v1.ProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetProviderRefreshStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.GetProviderRefreshStatusResponse", + "source": "" + } + ], + "method": "GetProviderRefreshStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L395-L402", + "request": "openshell.v1.GetProviderRefreshStatusRequest", + "response": "openshell.v1.GetProviderRefreshStatusResponse", + "rust_sdk_refs": [], + "scope": "provider:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ConfigureProviderRefreshRequest", + "source": "" + }, + { + "name": "openshell.v1.ConfigureProviderRefreshResponse", + "source": "" + } + ], + "method": "ConfigureProviderRefresh", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L405-L412", + "request": "openshell.v1.ConfigureProviderRefreshRequest", + "response": "openshell.v1.ConfigureProviderRefreshResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RotateProviderCredentialRequest", + "source": "" + }, + { + "name": "openshell.v1.RotateProviderCredentialResponse", + "source": "" + } + ], + "method": "RotateProviderCredential", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L415-L422", + "request": "openshell.v1.RotateProviderCredentialRequest", + "response": "openshell.v1.RotateProviderCredentialResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteProviderRefreshRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteProviderRefreshResponse", + "source": "" + } + ], + "method": "DeleteProviderRefresh", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L425-L432", + "request": "openshell.v1.DeleteProviderRefreshRequest", + "response": "openshell.v1.DeleteProviderRefreshResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteProviderRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteProviderResponse", + "source": "" + } + ], + "method": "DeleteProvider", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L435-L441", + "request": "openshell.v1.DeleteProviderRequest", + "response": "openshell.v1.DeleteProviderResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteProviderProfileRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteProviderProfileResponse", + "source": "" + } + ], + "method": "DeleteProviderProfile", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L444-L451", + "request": "openshell.v1.DeleteProviderProfileRequest", + "response": "openshell.v1.DeleteProviderProfileResponse", + "rust_sdk_refs": [], + "scope": "provider:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "dual", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.v1.GetSandboxConfigRequest", + "source": "" + }, + { + "name": "openshell.sandbox.v1.GetSandboxConfigResponse", + "source": "" + } + ], + "method": "GetSandboxConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L456-L463", + "request": "openshell.sandbox.v1.GetSandboxConfigRequest", + "response": "openshell.sandbox.v1.GetSandboxConfigResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.v1.GetGatewayConfigRequest", + "source": "" + }, + { + "name": "openshell.sandbox.v1.GetGatewayConfigResponse", + "source": "" + } + ], + "method": "GetGatewayConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L472-L478", + "request": "openshell.sandbox.v1.GetGatewayConfigRequest", + "response": "openshell.sandbox.v1.GetGatewayConfigResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "dual", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.UpdateConfigRequest", + "source": "" + }, + { + "name": "openshell.v1.UpdateConfigResponse", + "source": "" + } + ], + "method": "UpdateConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L481-L488", + "request": "openshell.v1.UpdateConfigRequest", + "response": "openshell.v1.UpdateConfigResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxPolicyStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxPolicyStatusResponse", + "source": "" + } + ], + "method": "GetSandboxPolicyStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L491-L498", + "request": "openshell.v1.GetSandboxPolicyStatusRequest", + "response": "openshell.v1.GetSandboxPolicyStatusResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListSandboxPoliciesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListSandboxPoliciesResponse", + "source": "" + } + ], + "method": "ListSandboxPolicies", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L501-L508", + "request": "openshell.v1.ListSandboxPoliciesRequest", + "response": "openshell.v1.ListSandboxPoliciesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportPolicyStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportPolicyStatusResponse", + "source": "" + } + ], + "method": "ReportPolicyStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L511-L516", + "request": "openshell.v1.ReportPolicyStatusRequest", + "response": "openshell.v1.ReportPolicyStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportEndpointStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportEndpointStatusResponse", + "source": "" + } + ], + "method": "ReportEndpointStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L519-L524", + "request": "openshell.v1.ReportEndpointStatusRequest", + "response": "openshell.v1.ReportEndpointStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportProviderReadinessRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportProviderReadinessResponse", + "source": "" + } + ], + "method": "ReportProviderReadiness", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L528-L533", + "request": "openshell.v1.ReportProviderReadinessRequest", + "response": "openshell.v1.ReportProviderReadinessResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportSandboxConfigurationRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportSandboxConfigurationResponse", + "source": "" + } + ], + "method": "ReportSandboxConfiguration", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L536-L539", + "request": "openshell.v1.ReportSandboxConfigurationRequest", + "response": "openshell.v1.ReportSandboxConfigurationResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxProviderEnvironmentRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxProviderEnvironmentResponse", + "source": "" + } + ], + "method": "GetSandboxProviderEnvironment", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L544-L549", + "request": "openshell.v1.GetSandboxProviderEnvironmentRequest", + "response": "openshell.v1.GetSandboxProviderEnvironmentResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ExchangeProviderSubjectTokenRequest", + "source": "" + }, + { + "name": "openshell.v1.ExchangeProviderSubjectTokenResponse", + "source": "" + } + ], + "method": "ExchangeProviderSubjectToken", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L553-L558", + "request": "openshell.v1.ExchangeProviderSubjectTokenRequest", + "response": "openshell.v1.ExchangeProviderSubjectTokenResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxLogsRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxLogsResponse", + "source": "" + } + ], + "method": "GetSandboxLogs", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L561-L567", + "request": "openshell.v1.GetSandboxLogsRequest", + "response": "openshell.v1.GetSandboxLogsResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PushSandboxLogsRequest", + "source": "" + }, + { + "name": "openshell.v1.PushSandboxLogsResponse", + "source": "" + } + ], + "method": "PushSandboxLogs", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L570-L574", + "request": "openshell.v1.PushSandboxLogsRequest", + "response": "openshell.v1.PushSandboxLogsResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GatewayMessage", + "source": "" + }, + { + "name": "openshell.v1.SupervisorMessage", + "source": "" + } + ], + "method": "ConnectSupervisor", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L585-L589", + "request": "openshell.v1.SupervisorMessage", + "response": "openshell.v1.GatewayMessage", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportMainProcessExitRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportMainProcessExitResponse", + "source": "" + } + ], + "method": "ReportMainProcessExit", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L592-L596", + "request": "openshell.v1.ReportMainProcessExitRequest", + "response": "openshell.v1.ReportMainProcessExitResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.FinalizeMainProcessExitRequest", + "source": "" + }, + { + "name": "openshell.v1.FinalizeMainProcessExitResponse", + "source": "" + } + ], + "method": "FinalizeMainProcessExit", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L599-L604", + "request": "openshell.v1.FinalizeMainProcessExitRequest", + "response": "openshell.v1.FinalizeMainProcessExitResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RelayFrame", + "source": "" + } + ], + "method": "RelayStream", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L617-L621", + "request": "openshell.v1.RelayFrame", + "response": "openshell.v1.RelayFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": true, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PeerRelayFrame", + "source": "" + } + ], + "method": "PeerRelay", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L630-L634", + "request": "openshell.v1.PeerRelayFrame", + "response": "openshell.v1.PeerRelayFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportProviderReadinessRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportProviderReadinessResponse", + "source": "" + } + ], + "method": "PeerReportProviderReadiness", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L637-L642", + "request": "openshell.v1.ReportProviderReadinessRequest", + "response": "openshell.v1.ReportProviderReadinessResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ReportEndpointStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.ReportEndpointStatusResponse", + "source": "" + } + ], + "method": "PeerReportEndpointStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L644-L649", + "request": "openshell.v1.ReportEndpointStatusRequest", + "response": "openshell.v1.ReportEndpointStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxProviderStatusRequest", + "source": "" + }, + { + "name": "openshell.v1.GetSandboxProviderStatusResponse", + "source": "" + } + ], + "method": "PeerGetSandboxProviderStatus", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L651-L656", + "request": "openshell.v1.GetSandboxProviderStatusRequest", + "response": "openshell.v1.GetSandboxProviderStatusResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "peer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PeerNotifyConfigUpdateRequest", + "source": "" + }, + { + "name": "openshell.v1.PeerNotifyConfigUpdateResponse", + "source": "" + } + ], + "method": "PeerNotifyConfigUpdate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L660-L665", + "request": "openshell.v1.PeerNotifyConfigUpdateRequest", + "response": "openshell.v1.PeerNotifyConfigUpdateResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxStreamEvent", + "source": "" + }, + { + "name": "openshell.v1.WatchSandboxRequest", + "source": "" + } + ], + "method": "WatchSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L673-L679", + "request": "openshell.v1.WatchSandboxRequest", + "response": "openshell.v1.SandboxStreamEvent", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [], + "server_streaming": true, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SubmitPolicyAnalysisRequest", + "source": "" + }, + { + "name": "openshell.v1.SubmitPolicyAnalysisResponse", + "source": "" + } + ], + "method": "SubmitPolicyAnalysis", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L686-L691", + "request": "openshell.v1.SubmitPolicyAnalysisRequest", + "response": "openshell.v1.SubmitPolicyAnalysisResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "dual", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetDraftPolicyRequest", + "source": "" + }, + { + "name": "openshell.v1.GetDraftPolicyResponse", + "source": "" + } + ], + "method": "GetDraftPolicy", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L694-L700", + "request": "openshell.v1.GetDraftPolicyRequest", + "response": "openshell.v1.GetDraftPolicyResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ApproveDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.ApproveDraftChunkResponse", + "source": "" + } + ], + "method": "ApproveDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L703-L710", + "request": "openshell.v1.ApproveDraftChunkRequest", + "response": "openshell.v1.ApproveDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RejectDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.RejectDraftChunkResponse", + "source": "" + } + ], + "method": "RejectDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L713-L720", + "request": "openshell.v1.RejectDraftChunkRequest", + "response": "openshell.v1.RejectDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ApproveAllDraftChunksRequest", + "source": "" + }, + { + "name": "openshell.v1.ApproveAllDraftChunksResponse", + "source": "" + } + ], + "method": "ApproveAllDraftChunks", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L723-L730", + "request": "openshell.v1.ApproveAllDraftChunksRequest", + "response": "openshell.v1.ApproveAllDraftChunksResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.EditDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.EditDraftChunkResponse", + "source": "" + } + ], + "method": "EditDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L733-L739", + "request": "openshell.v1.EditDraftChunkRequest", + "response": "openshell.v1.EditDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.UndoDraftChunkRequest", + "source": "" + }, + { + "name": "openshell.v1.UndoDraftChunkResponse", + "source": "" + } + ], + "method": "UndoDraftChunk", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L742-L748", + "request": "openshell.v1.UndoDraftChunkRequest", + "response": "openshell.v1.UndoDraftChunkResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ClearDraftChunksRequest", + "source": "" + }, + { + "name": "openshell.v1.ClearDraftChunksResponse", + "source": "" + } + ], + "method": "ClearDraftChunks", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L751-L758", + "request": "openshell.v1.ClearDraftChunksRequest", + "response": "openshell.v1.ClearDraftChunksResponse", + "rust_sdk_refs": [], + "scope": "config:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetDraftHistoryRequest", + "source": "" + }, + { + "name": "openshell.v1.GetDraftHistoryResponse", + "source": "" + } + ], + "method": "GetDraftHistory", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L761-L767", + "request": "openshell.v1.GetDraftHistoryRequest", + "response": "openshell.v1.GetDraftHistoryResponse", + "rust_sdk_refs": [], + "scope": "config:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.IssueSandboxTokenRequest", + "source": "" + }, + { + "name": "openshell.v1.IssueSandboxTokenResponse", + "source": "" + } + ], + "method": "IssueSandboxToken", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L774-L778", + "request": "openshell.v1.IssueSandboxTokenRequest", + "response": "openshell.v1.IssueSandboxTokenResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RefreshSandboxTokenRequest", + "source": "" + }, + { + "name": "openshell.v1.RefreshSandboxTokenResponse", + "source": "" + } + ], + "method": "RefreshSandboxToken", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L786-L791", + "request": "openshell.v1.RefreshSandboxTokenRequest", + "response": "openshell.v1.RefreshSandboxTokenResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": "platform_admin", + "messages": [ + { + "name": "openshell.v1.CreateWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.v1.CreateWorkspaceResponse", + "source": "" + } + ], + "method": "CreateWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L798-L804", + "request": "openshell.v1.CreateWorkspaceRequest", + "response": "openshell.v1.CreateWorkspaceResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.v1.GetWorkspaceResponse", + "source": "" + } + ], + "method": "GetWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L807-L813", + "request": "openshell.v1.GetWorkspaceRequest", + "response": "openshell.v1.GetWorkspaceResponse", + "rust_sdk_refs": [], + "scope": "workspace:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListWorkspacesRequest", + "source": "" + }, + { + "name": "openshell.v1.ListWorkspacesResponse", + "source": "" + } + ], + "method": "ListWorkspaces", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L816-L822", + "request": "openshell.v1.ListWorkspacesRequest", + "response": "openshell.v1.ListWorkspacesResponse", + "rust_sdk_refs": [], + "scope": "workspace:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": "platform_admin", + "messages": [ + { + "name": "openshell.v1.DeleteWorkspaceRequest", + "source": "" + }, + { + "name": "openshell.v1.DeleteWorkspaceResponse", + "source": "" + } + ], + "method": "DeleteWorkspace", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L825-L831", + "request": "openshell.v1.DeleteWorkspaceRequest", + "response": "openshell.v1.DeleteWorkspaceResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.AddWorkspaceMemberRequest", + "source": "" + }, + { + "name": "openshell.v1.AddWorkspaceMemberResponse", + "source": "" + } + ], + "method": "AddWorkspaceMember", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L834-L840", + "request": "openshell.v1.AddWorkspaceMemberRequest", + "response": "openshell.v1.AddWorkspaceMemberResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.RemoveWorkspaceMemberRequest", + "source": "" + }, + { + "name": "openshell.v1.RemoveWorkspaceMemberResponse", + "source": "" + } + ], + "method": "RemoveWorkspaceMember", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L843-L849", + "request": "openshell.v1.RemoveWorkspaceMemberRequest", + "response": "openshell.v1.RemoveWorkspaceMemberResponse", + "rust_sdk_refs": [], + "scope": "workspace:write", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "admin" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ListWorkspaceMembersRequest", + "source": "" + }, + { + "name": "openshell.v1.ListWorkspaceMembersResponse", + "source": "" + } + ], + "method": "ListWorkspaceMembers", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L852-L858", + "request": "openshell.v1.ListWorkspaceMembersRequest", + "response": "openshell.v1.ListWorkspaceMembersResponse", + "rust_sdk_refs": [], + "scope": "workspace:read", + "server_refs": [], + "server_streaming": false, + "service": "OpenShell", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Read installed, unexpired application routes in one explicit workspace.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetServiceRouteSnapshotRequest", + "source": "message GetServiceRouteSnapshotRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}" + }, + { + "name": "openshell.v1.GetServiceRouteSnapshotResponse", + "source": "message GetServiceRouteSnapshotResponse {\n ServiceRouteSnapshot snapshot = 1;\n}" + } + ], + "method": "GetServiceRouteSnapshot", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L864-L870", + "request": "openshell.v1.GetServiceRouteSnapshotRequest", + "response": "openshell.v1.GetServiceRouteSnapshotResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/service_discovery.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs" + } + ], + "server_streaming": false, + "service": "ServiceDiscovery", + "signature": "rpc GetServiceRouteSnapshot(GetServiceRouteSnapshotRequest) returns (GetServiceRouteSnapshotResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Full replacement views; reauthorize during the bounded watch lifetime.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.WatchServiceRoutesRequest", + "source": "message WatchServiceRoutesRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}" + }, + { + "name": "openshell.v1.WatchServiceRoutesResponse", + "source": "message WatchServiceRoutesResponse {\n ServiceRouteSnapshot snapshot = 1;\n}" + } + ], + "method": "WatchServiceRoutes", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L873-L879", + "request": "openshell.v1.WatchServiceRoutesRequest", + "response": "openshell.v1.WatchServiceRoutesResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/service_discovery.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs" + } + ], + "server_streaming": true, + "service": "ServiceDiscovery", + "signature": "rpc WatchServiceRoutes(WatchServiceRoutesRequest) returns (stream WatchServiceRoutesResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Update the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.SandboxResponse", + "source": "message SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}" + }, + { + "name": "openshell.v1.UpdateSandboxRequest", + "source": "message UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}" + } + ], + "method": "UpdateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896", + "request": "openshell.v1.UpdateSandboxRequest", + "response": "openshell.v1.SandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:write", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs" + }, + { + "path": "crates/openshell-server/src/grpc/sandbox/image_update_tests.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs" + } + ], + "server_streaming": false, + "service": "SandboxUpdates", + "signature": "rpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}", + "ts_sdk_refs": [ + { + "path": "sdk/typescript/src/raw.test.ts", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts" + } + ], + "workspace_role": "user" + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "gateway_interceptor.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.gateway_interceptor.v1.DescribeRequest", + "source": "" + }, + { + "name": "openshell.gateway_interceptor.v1.InterceptorManifest", + "source": "" + } + ], + "method": "Describe", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/gateway_interceptor.proto#L17-L17", + "request": "openshell.gateway_interceptor.v1.DescribeRequest", + "response": "openshell.gateway_interceptor.v1.InterceptorManifest", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "GatewayInterceptor", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "gateway_interceptor.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.gateway_interceptor.v1.ProviderProfileSnapshot", + "source": "" + }, + { + "name": "openshell.gateway_interceptor.v1.ProviderProfileSnapshotRequest", + "source": "" + } + ], + "method": "SnapshotProviderProfiles", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/gateway_interceptor.proto#L21-L22", + "request": "openshell.gateway_interceptor.v1.ProviderProfileSnapshotRequest", + "response": "openshell.gateway_interceptor.v1.ProviderProfileSnapshot", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "GatewayInterceptor", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "gateway_interceptor.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.gateway_interceptor.v1.InterceptorEvaluation", + "source": "" + }, + { + "name": "openshell.gateway_interceptor.v1.InterceptorResult", + "source": "" + } + ], + "method": "Evaluate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/gateway_interceptor.proto#L26-L26", + "request": "openshell.gateway_interceptor.v1.InterceptorEvaluation", + "response": "openshell.gateway_interceptor.v1.InterceptorResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "GatewayInterceptor", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.DescribeIsolationBackendRequest", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.DescribeIsolationBackendResponse", + "source": "" + } + ], + "method": "Describe", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L38-L38", + "request": "openshell.sandbox.backend.v1.DescribeIsolationBackendRequest", + "response": "openshell.sandbox.backend.v1.DescribeIsolationBackendResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.OpenBoundaryRequest", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "source": "" + } + ], + "method": "OpenBoundary", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L54-L54", + "request": "openshell.sandbox.backend.v1.OpenBoundaryRequest", + "response": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.SuspendBoundaryRequest", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.SuspendBoundaryResponse", + "source": "" + } + ], + "method": "SuspendBoundary", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L61-L61", + "request": "openshell.sandbox.backend.v1.SuspendBoundaryRequest", + "response": "openshell.sandbox.backend.v1.SuspendBoundaryResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "isolation_backend.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "source": "" + }, + { + "name": "openshell.sandbox.backend.v1.ResumeBoundaryRequest", + "source": "" + } + ], + "method": "ResumeBoundary", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/isolation_backend.proto#L71-L71", + "request": "openshell.sandbox.backend.v1.ResumeBoundaryRequest", + "response": "openshell.sandbox.backend.v1.OpenBoundaryResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "IsolationBackend", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "sandbox_protocol.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.protocol.v1.ExchangeFrame", + "source": "" + } + ], + "method": "Exchange", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/sandbox_protocol.proto#L25-L25", + "request": "openshell.sandbox.protocol.v1.ExchangeFrame", + "response": "openshell.sandbox.protocol.v1.ExchangeFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SandboxProtocol", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "sandbox_protocol.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.sandbox.protocol.v1.MediateFrame", + "source": "" + } + ], + "method": "Mediate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/sandbox_protocol.proto#L26-L26", + "request": "openshell.sandbox.protocol.v1.MediateFrame", + "response": "openshell.sandbox.protocol.v1.MediateFrame", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SandboxProtocol", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": "supervisor", + "client_streaming": true, + "comment": "", + "file": "supervisor_host.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.supervisor.host.v1.HostGatewayMessage", + "source": "" + }, + { + "name": "openshell.supervisor.host.v1.HostMessage", + "source": "" + } + ], + "method": "Attach", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_host.proto#L30-L34", + "request": "openshell.supervisor.host.v1.HostMessage", + "response": "openshell.supervisor.host.v1.HostGatewayMessage", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SupervisorHost", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.MiddlewareDescribeRequest", + "source": "" + }, + { + "name": "openshell.middleware.v1.MiddlewareManifest", + "source": "" + } + ], + "method": "Describe", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L32-L32", + "request": "openshell.middleware.v1.MiddlewareDescribeRequest", + "response": "openshell.middleware.v1.MiddlewareManifest", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.ValidateConfigRequest", + "source": "" + }, + { + "name": "openshell.middleware.v1.ValidateConfigResponse", + "source": "" + } + ], + "method": "ValidateConfig", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L35-L35", + "request": "openshell.middleware.v1.ValidateConfigRequest", + "response": "openshell.middleware.v1.ValidateConfigResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpRequestEvaluation", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpRequestResult", + "source": "" + } + ], + "method": "EvaluateHttpRequest", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L42-L44", + "request": "openshell.middleware.v1.HttpRequestEvaluation", + "response": "openshell.middleware.v1.HttpRequestResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": false, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.WebSocketSessionEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.WebSocketSessionEventResult", + "source": "" + } + ], + "method": "EvaluateWebSocketSession", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L53-L54", + "request": "openshell.middleware.v1.WebSocketSessionEvent", + "response": "openshell.middleware.v1.WebSocketSessionEventResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "SupervisorMiddleware", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpRequestHookEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpRequestHookResult", + "source": "" + } + ], + "method": "EvaluateHttpRequestHook", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L67-L68", + "request": "openshell.middleware.v1.HttpRequestHookEvent", + "response": "openshell.middleware.v1.HttpRequestHookResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "HttpHooks", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpResponseHookEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpResponseHookResult", + "source": "" + } + ], + "method": "EvaluateHttpResponseHook", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L74-L75", + "request": "openshell.middleware.v1.HttpResponseHookEvent", + "response": "openshell.middleware.v1.HttpResponseHookResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "HttpHooks", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": true, + "comment": "", + "file": "supervisor_middleware.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.middleware.v1.HttpResponseEvent", + "source": "" + }, + { + "name": "openshell.middleware.v1.HttpResponseEventResult", + "source": "" + } + ], + "method": "Evaluate", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/supervisor_middleware.proto#L97-L100", + "request": "openshell.middleware.v1.HttpResponseEvent", + "response": "openshell.middleware.v1.HttpResponseEventResult", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [], + "server_streaming": true, + "service": "HttpResponsePreReturn", + "signature": "(trimmed)", + "ts_sdk_refs": [], + "workspace_role": null + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.1.9" +} diff --git a/hack/automation/testdata/rpc-issues/planner/idempotent/input.json.license b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json b/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json new file mode 100644 index 0000000..57c32b2 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json @@ -0,0 +1,13 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC the Go SDK does not wrap yet.", + "group": "method:OpenShell.ForwardTcp", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json.license b/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/no-marker/input.json b/hack/automation/testdata/rpc-issues/planner/no-marker/input.json new file mode 100644 index 0000000..42d328f --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/no-marker/input.json @@ -0,0 +1,117 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "Please wrap ForwardTcp.\n\n", + "labels": [ + "rpc-coverage" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 7, + "state": "OPEN", + "title": "t" + }, + { + "body": "", + "labels": [ + "rpc-coverage" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 8, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/no-marker/input.json.license b/hack/automation/testdata/rpc-issues/planner/no-marker/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/no-marker/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json b/hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json.license b/hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/plugin-file/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/plugin-file/input.json b/hack/automation/testdata/rpc-issues/planner/plugin-file/input.json new file mode 100644 index 0000000..7da2f23 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/plugin-file/input.json @@ -0,0 +1,128 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "CreateSandbox does something useful.", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CreateSandboxRequest", + "source": "message CreateSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.CreateSandboxResponse", + "source": "message CreateSandboxResponse {}" + } + ], + "method": "CreateSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/compute_driver.proto#L10-L12", + "request": "openshell.v1.CreateSandboxRequest", + "response": "openshell.v1.CreateSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "rpc CreateSandbox(CreateSandboxRequest) returns (CreateSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": null + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "DeleteSandbox does something useful.", + "file": "compute_driver.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.DeleteSandboxRequest", + "source": "message DeleteSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.DeleteSandboxResponse", + "source": "message DeleteSandboxResponse {}" + } + ], + "method": "DeleteSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/compute_driver.proto#L10-L12", + "request": "openshell.v1.DeleteSandboxRequest", + "response": "openshell.v1.DeleteSandboxResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "ComputeDriver", + "signature": "rpc DeleteSandbox(DeleteSandboxRequest) returns (DeleteSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": null + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/plugin-file/input.json.license b/hack/automation/testdata/rpc-issues/planner/plugin-file/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/plugin-file/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json b/hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json new file mode 100644 index 0000000..652c2ba --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json @@ -0,0 +1,16 @@ +{ + "error": "too-many-new", + "planned": [ + "feat(sdk): wrap OpenShell.Method01 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method02 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method03 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method04 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method05 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method06 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method07 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method08 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method09 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method10 (core v0.2.0)", + "feat(sdk): wrap OpenShell.Method11 (core v0.2.0)" + ] +} diff --git a/hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json.license b/hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/too-many-new/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/too-many-new/input.json b/hack/automation/testdata/rpc-issues/planner/too-many-new/input.json new file mode 100644 index 0000000..b9bb259 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/too-many-new/input.json @@ -0,0 +1,434 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method01 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method01Request", + "source": "message Method01Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method01Response", + "source": "message Method01Response {}" + } + ], + "method": "Method01", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method01Request", + "response": "openshell.v1.Method01Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method01(Method01Request) returns (Method01Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method02 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method02Request", + "source": "message Method02Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method02Response", + "source": "message Method02Response {}" + } + ], + "method": "Method02", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method02Request", + "response": "openshell.v1.Method02Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method02(Method02Request) returns (Method02Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method03 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method03Request", + "source": "message Method03Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method03Response", + "source": "message Method03Response {}" + } + ], + "method": "Method03", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method03Request", + "response": "openshell.v1.Method03Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method03(Method03Request) returns (Method03Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method04 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method04Request", + "source": "message Method04Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method04Response", + "source": "message Method04Response {}" + } + ], + "method": "Method04", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method04Request", + "response": "openshell.v1.Method04Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method04(Method04Request) returns (Method04Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method05 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method05Request", + "source": "message Method05Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method05Response", + "source": "message Method05Response {}" + } + ], + "method": "Method05", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method05Request", + "response": "openshell.v1.Method05Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method05(Method05Request) returns (Method05Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method06 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method06Request", + "source": "message Method06Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method06Response", + "source": "message Method06Response {}" + } + ], + "method": "Method06", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method06Request", + "response": "openshell.v1.Method06Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method06(Method06Request) returns (Method06Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method07 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method07Request", + "source": "message Method07Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method07Response", + "source": "message Method07Response {}" + } + ], + "method": "Method07", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method07Request", + "response": "openshell.v1.Method07Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method07(Method07Request) returns (Method07Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method08 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method08Request", + "source": "message Method08Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method08Response", + "source": "message Method08Response {}" + } + ], + "method": "Method08", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method08Request", + "response": "openshell.v1.Method08Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method08(Method08Request) returns (Method08Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method09 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method09Request", + "source": "message Method09Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method09Response", + "source": "message Method09Response {}" + } + ], + "method": "Method09", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method09Request", + "response": "openshell.v1.Method09Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method09(Method09Request) returns (Method09Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method10 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method10Request", + "source": "message Method10Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method10Response", + "source": "message Method10Response {}" + } + ], + "method": "Method10", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method10Request", + "response": "openshell.v1.Method10Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method10(Method10Request) returns (Method10Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method11 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method11Request", + "source": "message Method11Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method11Response", + "source": "message Method11Response {}" + } + ], + "method": "Method11", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method11Request", + "response": "openshell.v1.Method11Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method11(Method11Request) returns (Method11Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/too-many-new/input.json.license b/hack/automation/testdata/rpc-issues/planner/too-many-new/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/too-many-new/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json b/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json new file mode 100644 index 0000000..28c26eb --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json @@ -0,0 +1,13 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Ping`, a user-facing RPC the Go SDK does not wrap yet.", + "group": "method:OpenShell.Ping", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap OpenShell.Ping (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json.license b/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json b/hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json new file mode 100644 index 0000000..236fc5c --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json @@ -0,0 +1,95 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.Ping" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": null, + "client_streaming": false, + "comment": "Ping does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.PingRequest", + "source": "message PingRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.PingResponse", + "source": "message PingResponse {}" + } + ], + "method": "Ping", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.PingRequest", + "response": "openshell.v1.PingResponse", + "rust_sdk_refs": [], + "scope": null, + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Ping(PingRequest) returns (PingResponse) {}", + "ts_sdk_refs": [], + "workspace_role": null + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json.license b/hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unannotated-served/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 From c16b55e98226efee81b1340fc7ce760f5f1012db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:17:43 +0100 Subject: [PATCH 07/23] feat(automation): render complete RPC coverage issue bodies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each issue shows per method the signature, doc comment, streaming kind, authorization (or the missing annotation), request and response messages, and the proto link at the tag; where core's server, Rust SDK, and TypeScript SDK mention the method; whether the work is buildable on main, needs the bump branch, waits for the bump proposal, or needs bindings generation; and an implementation brief to copy. The body template is rpc-issue-body.md. Signed-off-by: Roland Huß --- hack/automation/rpc-issue-body.md | 22 ++++ hack/automation/rpc-issues.jq | 119 +++++++++++++++++- .../planner/backfill-v0.1.9/expected.json | 12 +- .../rpc-issues/planner/idempotent/input.json | 12 +- .../planner/no-marker/expected.json | 2 +- .../planner/unannotated-served/expected.json | 2 +- 6 files changed, 152 insertions(+), 17 deletions(-) diff --git a/hack/automation/rpc-issue-body.md b/hack/automation/rpc-issue-body.md index 1e25675..bd9b561 100644 --- a/hack/automation/rpc-issue-body.md +++ b/hack/automation/rpc-issue-body.md @@ -1,3 +1,25 @@ {{MARKER}} {{SUMMARY}} + +{{BUILDABILITY}} + +{{METHODS}} + +## Where core implements it + +{{REFS}} + +## Implementation brief + +Copy this block as the task description when you start the work. + +````text +{{BRIEF}} +```` + +## About this issue + +The RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag. +It rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`]({{EXCEPTIONS_URL}}). +An issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered. diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index b9e32b1..559faed 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -104,6 +104,110 @@ def group_buildability: def readiness: if group_buildability == "built" then "rpc:ready" else "rpc:blocked" end; +def code_list: map("`" + . + "`") | if length <= 2 then join(" and ") else (.[:-1] | join(", ")) + ", and " + .[-1] end; + +def streaming_kind: + if .client_streaming and .server_streaming then "bidirectional streaming" + elif .client_streaming then "client streaming" + elif .server_streaming then "server streaming" + else "unary" end; + +def auth_text: + if .auth_mode == null then + "no authorization annotation. The gateway treats unannotated methods as user-callable, so this issue includes it; core should add the annotation." + else + "`\(.auth_mode)`" + + (if .scope then ", scope `\(.scope)`" else "" end) + + (if .workspace_role then ", workspace role `\(.workspace_role)`" else "" end) + + (if .global_role then ", global role `\(.global_role)`" else "" end) + end; + +def proto_block: "```proto\n" + . + "\n```"; + +def link_list: map("[`\(.path)`](\(.url))") | join(", "); + +# One section per method: signature, comment, streaming kind, auth, messages. +def method_section($tag): + "## `\(.key)`\n\n" + + (if (.comment // "") != "" then .comment + "\n\n" else "" end) + + "- Streaming: \(streaming_kind)\n" + + "- Authorization: \(auth_text)\n" + + "- Definition: [`proto/\(.file)`](\(.proto_url)) at core `\($tag)`\n" + + "- Generated bindings on the SDK's `main`: \(if .buildability == "built" then "yes" else "no" end)\n\n" + + (.signature | proto_block) + "\n\n" + + "Request and response messages:\n\n" + + ([.messages[] | if (.source // "") != "" then .source | proto_block + else "`\(.name)` (definition not in core's `proto/`, for example a well-known type)" end] + | join("\n\n")); + +def refs_section: + "### `\(.key)`\n\n" + + "- Server (`crates/openshell-server/src`): " + + (if (.server_refs | length) > 0 then (.server_refs | link_list) else "not found" end) + "\n" + + "- Rust SDK (`crates/openshell-sdk/src`): " + + (if (.rust_sdk_refs | length) > 0 then "found in " + (.rust_sdk_refs | link_list) else "not found" end) + "\n" + + "- TypeScript SDK (`sdk/typescript/src`): " + + (if (.ts_sdk_refs | length) > 0 then "found in " + (.ts_sdk_refs | link_list) else "not found" end); + +def buildability_text($ctx): + ($ctx.rows | group_buildability) as $b + | "https://github.com/\($ctx.repo)/tree/core/\($ctx.tag)" as $branch_url + | if $b == "built" then + "**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here." + elif $b == "bump-branch" then + "**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/\($ctx.tag)`](\($branch_url)), or on `main` once that proposal is merged." + elif $b == "bump-pending" then + "**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet, and the bump proposal for core `\($ctx.tag)` (branch `core/\($ctx.tag)`) does not exist yet. core-watch opens it; work on that branch once it exists." + else + "**Blocked on bindings generation**: the SDK does not generate bindings for " + + ([$ctx.rows[] | select(.buildability == "needs-bindings") | "proto/" + .file] | unique | code_list) + + " yet. Add the `M` option for the file to both plugins in `buf.gen.yaml` and run `mise run proto:gen` first." + end; + +# The implementation brief: plain text, copied as the task description. +def brief($ctx): + $ctx.group as $g + | ($ctx.rows | group_buildability) as $b + | [$ctx.rows[].method] as $methods + | (if $g.kind == "service" then + "Wrap the \($g.service) service of OpenShell core in the OpenShell Go SDK (https://github.com/\($ctx.repo)): methods \($methods | join(", "))." + else + "Wrap the \($g.service).\($g.method) RPC of OpenShell core in the OpenShell Go SDK (https://github.com/\($ctx.repo))." + end) + + "\n\nCore version: \($ctx.core_repo) at tag \($ctx.tag).\n" + + (if $b == "built" then + "Branch: start from main; its generated bindings already contain the methods." + elif $b == "bump-branch" then + "Branch: start from core/\($ctx.tag), the core bump proposal for \($ctx.tag); the bindings on main do not contain the methods yet." + elif $b == "bump-pending" then + "Branch: core/\($ctx.tag), the core bump proposal for \($ctx.tag), which core-watch has not opened yet; start once it exists." + else + "Branch: start from main. First add the M option for " + + ([$ctx.rows[] | select(.buildability == "needs-bindings") | "proto/" + .file] | unique | join(" and ")) + + " to both plugins in buf.gen.yaml and run `mise run proto:gen`." + end) + + "\n\nRead first:\n" + + "- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n" + + ([$ctx.rows[] + | "- \(.key): proto definition \(.proto_url)" + + (if (.server_refs | length) > 0 then "; core server: " + ([.server_refs[].url] | join(", ")) else "; core server: not found" end) + + (if (.rust_sdk_refs | length) > 0 then "; core Rust SDK: " + ([.rust_sdk_refs[].url] | join(", ")) else "" end) + + (if (.ts_sdk_refs | length) > 0 then "; core TypeScript SDK: " + ([.ts_sdk_refs[].url] | join(", ")) else "" end)] + | join("\n")) + "\n" + + "- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n" + + "\nDeliverables:\n" + + (if $g.kind == "service" then + "- A sub-client in openshell/v1 for the \($g.service) service, behind an interface like the other sub-clients, that constructs pb.New\($g.service)Client(conn) and is reachable from Client.\n" + else + "- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n" + end) + + "- Domain types in openshell/v1/types/ without proto imports.\n" + + "- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n" + + "- The fake implementation in openshell/v1/fake/.\n" + + "- Unit tests with bufconn and testify.\n" + + "- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n" + + "\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit."; + # Body of a group; $ctx carries the input document and the group's rows. def render_body($ctx): $ctx.group as $g @@ -112,11 +216,20 @@ def render_body($ctx): | fill({ MARKER: ($m | render_marker), SUMMARY: ( - if $g.kind == "service" then - "Core `\($ctx.tag)` has \($ctx.rows | length) user-facing method(s) in the `\($g.service)` service that the Go SDK does not wrap yet." + (if $g.kind == "service" then + "Core `\($ctx.tag)` has " + + (if ($ctx.rows | length) == 1 then "a user-facing method" else "\($ctx.rows | length) user-facing methods" end) + + " in the `\($g.service)` service that the Go SDK does not wrap yet: \($m.methods | code_list). " + + "The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole." else - "Core `\($ctx.tag)` has `\($g.service).\($g.method)`, a user-facing RPC the Go SDK does not wrap yet." + "Core `\($ctx.tag)` has `\($g.service).\($g.method)`, a user-facing RPC that the Go SDK does not wrap yet." end) + + " First seen in core `\($g.first_seen)`."), + BUILDABILITY: buildability_text($ctx), + METHODS: ([$ctx.rows[] | method_section($ctx.tag)] | join("\n\n")), + REFS: ([$ctx.rows[] | refs_section] | join("\n\n")), + BRIEF: brief($ctx), + EXCEPTIONS_URL: "https://github.com/\($ctx.repo)/blob/main/hack/automation/rpc-exceptions.txt" }) | normalize; diff --git a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json index 0efa887..628a6e1 100644 --- a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json +++ b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json @@ -1,7 +1,7 @@ [ { "action": "open", - "body": "\n\nCore `v0.1.9` has `OpenShell.BeginRootfsTarStaging`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.BeginRootfsTarStaging`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.BeginRootfsTarStaging`\n\nAllocate a gateway-owned staging slot for a local rootfs tar archive.\n\nThe gateway creates a request-scoped directory inside the compute driver's\nstaging root and returns an opaque single-use token plus the absolute path\nthe client must write the archive to. The token is then passed as\n`template.driver_config..rootfs_tar_staging_token` on\nCreateSandbox; callers never name a filesystem path themselves. Only a\nclient sharing the gateway's filesystem can complete the upload.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L64-L71) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc BeginRootfsTarStaging(BeginRootfsTarStagingRequest)\n returns (BeginRootfsTarStagingResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage BeginRootfsTarStagingRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 3;\n // Base file name of the local archive. The gateway uses it only to name the\n // staged file; path separators and traversal components are rejected.\n string file_name = 1;\n // Size of the local archive in bytes, checked against the driver limit\n // before the gateway allocates a slot.\n uint64 size_bytes = 2;\n}\n```\n\n```proto\nmessage BeginRootfsTarStagingResponse {\n reserved 4;\n reserved \"expires_at_ms\";\n // Opaque single-use token. Pass it as\n // `template.driver_config..rootfs_tar_staging_token` on\n // CreateSandbox. The first CreateSandbox presenting it consumes it.\n string staging_token = 1;\n // Absolute path on the gateway host the client must write the archive to.\n string upload_path = 2;\n // Maximum accepted archive size in bytes, enforced again by the driver.\n uint64 max_bytes = 3;\n // Wall-clock deadline after which the gateway reclaims the slot.\n google.protobuf.Timestamp expiration_time = 104;\n}\n```\n\n## Where core implements it\n\n### `OpenShell.BeginRootfsTarStaging`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.BeginRootfsTarStaging RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.BeginRootfsTarStaging: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L64-L71; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "method:OpenShell.BeginRootfsTarStaging", "labels": [ "help wanted", @@ -12,7 +12,7 @@ }, { "action": "open", - "body": "\n\nCore `v0.1.9` has `OpenShell.ExecSandboxInteractive`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.ExecSandboxInteractive`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ExecSandboxInteractive`\n\nExecute an interactive command with bidirectional stdin/stdout streaming.\nThe first client message MUST carry an ExecSandboxInput with the start\nvariant. Subsequent messages carry stdin bytes or window resize events.\n\n- Streaming: bidirectional streaming\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L293-L299) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ExecSandboxInteractive(stream ExecSandboxInput) returns (stream ExecSandboxEvent) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage ExecSandboxEvent {\n oneof payload {\n ExecSandboxStdout stdout = 1;\n ExecSandboxStderr stderr = 2;\n ExecSandboxExit exit = 3;\n }\n}\n```\n\n```proto\nmessage ExecSandboxInput {\n oneof payload {\n // First message: exec request metadata.\n ExecSandboxRequest start = 1;\n // Subsequent messages: raw stdin bytes.\n bytes stdin = 2;\n // Terminal window size change.\n ExecSandboxWindowResize resize = 3;\n }\n}\n```\n\n## Where core implements it\n\n### `OpenShell.ExecSandboxInteractive`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/client.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts), [`sdk/typescript/src/client.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts), [`sdk/typescript/src/routing.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ExecSandboxInteractive RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ExecSandboxInteractive: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L293-L299; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "method:OpenShell.ExecSandboxInteractive", "labels": [ "help wanted", @@ -23,7 +23,7 @@ }, { "action": "open", - "body": "\n\nCore `v0.1.9` has `OpenShell.ForwardTcp`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForward one CLI-side TCP connection to a loopback TCP target in a sandbox.\n\n- Streaming: bidirectional streaming\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L282-L288) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(stream TcpForwardFrame) returns (stream TcpForwardFrame) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage TcpForwardFrame {\n oneof payload {\n TcpForwardInit init = 1;\n bytes data = 2;\n }\n}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/client.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts), [`sdk/typescript/src/client.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts), [`sdk/typescript/src/routing.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L282-L288; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "method:OpenShell.ForwardTcp", "labels": [ "help wanted", @@ -34,7 +34,7 @@ }, { "action": "open", - "body": "\n\nCore `v0.1.9` has `OpenShell.GetSandboxProviderStatus`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.GetSandboxProviderStatus`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.GetSandboxProviderStatus`\n\nInspect the installed authority for one sandbox provider mutation.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L162-L169) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc GetSandboxProviderStatus(GetSandboxProviderStatusRequest)\n returns (GetSandboxProviderStatusResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage GetSandboxProviderStatusRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 4;\n string sandbox = 1;\n string provider = 2;\n string receipt_id = 3;\n}\n```\n\n```proto\nmessage GetSandboxProviderStatusResponse {\n ProviderReadinessStatus status = 1;\n}\n```\n\n## Where core implements it\n\n### `OpenShell.GetSandboxProviderStatus`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/gateway_metrics.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/gateway_metrics.rs), [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/supervisor_session.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/supervisor_session.rs)\n- Rust SDK (`crates/openshell-sdk/src`): found in [`crates/openshell-sdk/src/provider_readiness.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-sdk/src/provider_readiness.rs)\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.GetSandboxProviderStatus RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.GetSandboxProviderStatus: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L162-L169; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/gateway_metrics.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/supervisor_session.rs; core Rust SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-sdk/src/provider_readiness.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "method:OpenShell.GetSandboxProviderStatus", "labels": [ "help wanted", @@ -45,7 +45,7 @@ }, { "action": "open", - "body": "\n\nCore `v0.1.9` has 1 user-facing method(s) in the `SandboxUpdates` service that the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has a user-facing method in the `SandboxUpdates` service that the Go SDK does not wrap yet: `UpdateSandbox`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `SandboxUpdates.UpdateSandbox`\n\nUpdate the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}\n```\n\n```proto\nmessage UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}\n```\n\n## Where core implements it\n\n### `SandboxUpdates.UpdateSandbox`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/sandbox/image_update_tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/raw.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the SandboxUpdates service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods UpdateSandbox.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- SandboxUpdates.UpdateSandbox: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the SandboxUpdates service, behind an interface like the other sub-clients, that constructs pb.NewSandboxUpdatesClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "service:SandboxUpdates", "labels": [ "help wanted", @@ -56,7 +56,7 @@ }, { "action": "open", - "body": "\n\nCore `v0.1.9` has 2 user-facing method(s) in the `ServiceDiscovery` service that the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has 2 user-facing methods in the `ServiceDiscovery` service that the Go SDK does not wrap yet: `GetServiceRouteSnapshot` and `WatchServiceRoutes`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.1.9`](https://github.com/ai-openshell/sdk-go/tree/core/v0.1.9), or on `main` once that proposal is merged.\n\n## `ServiceDiscovery.GetServiceRouteSnapshot`\n\nRead installed, unexpired application routes in one explicit workspace.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L864-L870) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc GetServiceRouteSnapshot(GetServiceRouteSnapshotRequest) returns (GetServiceRouteSnapshotResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage GetServiceRouteSnapshotRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}\n```\n\n```proto\nmessage GetServiceRouteSnapshotResponse {\n ServiceRouteSnapshot snapshot = 1;\n}\n```\n\n## `ServiceDiscovery.WatchServiceRoutes`\n\nFull replacement views; reauthorize during the bounded watch lifetime.\n\n- Streaming: server streaming\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L873-L879) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc WatchServiceRoutes(WatchServiceRoutesRequest) returns (stream WatchServiceRoutesResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage WatchServiceRoutesRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}\n```\n\n```proto\nmessage WatchServiceRoutesResponse {\n ServiceRouteSnapshot snapshot = 1;\n}\n```\n\n## Where core implements it\n\n### `ServiceDiscovery.GetServiceRouteSnapshot`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/service_discovery.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n### `ServiceDiscovery.WatchServiceRoutes`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/service_discovery.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the ServiceDiscovery service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods GetServiceRouteSnapshot, WatchServiceRoutes.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from core/v0.1.9, the core bump proposal for v0.1.9; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- ServiceDiscovery.GetServiceRouteSnapshot: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L864-L870; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs\n- ServiceDiscovery.WatchServiceRoutes: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L873-L879; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the ServiceDiscovery service, behind an interface like the other sub-clients, that constructs pb.NewServiceDiscoveryClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "service:ServiceDiscovery", "labels": [ "help wanted", diff --git a/hack/automation/testdata/rpc-issues/planner/idempotent/input.json b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json index 52a70a3..5ff7530 100644 --- a/hack/automation/testdata/rpc-issues/planner/idempotent/input.json +++ b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json @@ -163,7 +163,7 @@ ], "issues": [ { - "body": "\n\nCore `v0.1.9` has `OpenShell.BeginRootfsTarStaging`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.BeginRootfsTarStaging`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.BeginRootfsTarStaging`\n\nAllocate a gateway-owned staging slot for a local rootfs tar archive.\n\nThe gateway creates a request-scoped directory inside the compute driver's\nstaging root and returns an opaque single-use token plus the absolute path\nthe client must write the archive to. The token is then passed as\n`template.driver_config..rootfs_tar_staging_token` on\nCreateSandbox; callers never name a filesystem path themselves. Only a\nclient sharing the gateway's filesystem can complete the upload.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L64-L71) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc BeginRootfsTarStaging(BeginRootfsTarStagingRequest)\n returns (BeginRootfsTarStagingResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage BeginRootfsTarStagingRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 3;\n // Base file name of the local archive. The gateway uses it only to name the\n // staged file; path separators and traversal components are rejected.\n string file_name = 1;\n // Size of the local archive in bytes, checked against the driver limit\n // before the gateway allocates a slot.\n uint64 size_bytes = 2;\n}\n```\n\n```proto\nmessage BeginRootfsTarStagingResponse {\n reserved 4;\n reserved \"expires_at_ms\";\n // Opaque single-use token. Pass it as\n // `template.driver_config..rootfs_tar_staging_token` on\n // CreateSandbox. The first CreateSandbox presenting it consumes it.\n string staging_token = 1;\n // Absolute path on the gateway host the client must write the archive to.\n string upload_path = 2;\n // Maximum accepted archive size in bytes, enforced again by the driver.\n uint64 max_bytes = 3;\n // Wall-clock deadline after which the gateway reclaims the slot.\n google.protobuf.Timestamp expiration_time = 104;\n}\n```\n\n## Where core implements it\n\n### `OpenShell.BeginRootfsTarStaging`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.BeginRootfsTarStaging RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.BeginRootfsTarStaging: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L64-L71; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", @@ -176,7 +176,7 @@ "title": "feat(sdk): wrap OpenShell.BeginRootfsTarStaging (core v0.1.9)" }, { - "body": "\n\nCore `v0.1.9` has `OpenShell.ExecSandboxInteractive`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.ExecSandboxInteractive`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ExecSandboxInteractive`\n\nExecute an interactive command with bidirectional stdin/stdout streaming.\nThe first client message MUST carry an ExecSandboxInput with the start\nvariant. Subsequent messages carry stdin bytes or window resize events.\n\n- Streaming: bidirectional streaming\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L293-L299) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ExecSandboxInteractive(stream ExecSandboxInput) returns (stream ExecSandboxEvent) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage ExecSandboxEvent {\n oneof payload {\n ExecSandboxStdout stdout = 1;\n ExecSandboxStderr stderr = 2;\n ExecSandboxExit exit = 3;\n }\n}\n```\n\n```proto\nmessage ExecSandboxInput {\n oneof payload {\n // First message: exec request metadata.\n ExecSandboxRequest start = 1;\n // Subsequent messages: raw stdin bytes.\n bytes stdin = 2;\n // Terminal window size change.\n ExecSandboxWindowResize resize = 3;\n }\n}\n```\n\n## Where core implements it\n\n### `OpenShell.ExecSandboxInteractive`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/client.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts), [`sdk/typescript/src/client.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts), [`sdk/typescript/src/routing.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ExecSandboxInteractive RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ExecSandboxInteractive: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L293-L299; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mutation_replay/streaming/tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", @@ -189,7 +189,7 @@ "title": "feat(sdk): wrap OpenShell.ExecSandboxInteractive (core v0.1.9)" }, { - "body": "\n\nCore `v0.1.9` has `OpenShell.ForwardTcp`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForward one CLI-side TCP connection to a loopback TCP target in a sandbox.\n\n- Streaming: bidirectional streaming\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L282-L288) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(stream TcpForwardFrame) returns (stream TcpForwardFrame) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage TcpForwardFrame {\n oneof payload {\n TcpForwardInit init = 1;\n bytes data = 2;\n }\n}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/client.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts), [`sdk/typescript/src/client.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts), [`sdk/typescript/src/routing.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L282-L288; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.test.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/client.ts, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/routing.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", @@ -202,7 +202,7 @@ "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.1.9)" }, { - "body": "\n\nCore `v0.1.9` has `OpenShell.GetSandboxProviderStatus`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has `OpenShell.GetSandboxProviderStatus`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.GetSandboxProviderStatus`\n\nInspect the installed authority for one sandbox provider mutation.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L162-L169) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc GetSandboxProviderStatus(GetSandboxProviderStatusRequest)\n returns (GetSandboxProviderStatusResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage GetSandboxProviderStatusRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 4;\n string sandbox = 1;\n string provider = 2;\n string receipt_id = 3;\n}\n```\n\n```proto\nmessage GetSandboxProviderStatusResponse {\n ProviderReadinessStatus status = 1;\n}\n```\n\n## Where core implements it\n\n### `OpenShell.GetSandboxProviderStatus`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/gateway_metrics.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/gateway_metrics.rs), [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/supervisor_session.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/supervisor_session.rs)\n- Rust SDK (`crates/openshell-sdk/src`): found in [`crates/openshell-sdk/src/provider_readiness.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-sdk/src/provider_readiness.rs)\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.GetSandboxProviderStatus RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.GetSandboxProviderStatus: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L162-L169; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/gateway_metrics.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/supervisor_session.rs; core Rust SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-sdk/src/provider_readiness.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", @@ -215,7 +215,7 @@ "title": "feat(sdk): wrap OpenShell.GetSandboxProviderStatus (core v0.1.9)" }, { - "body": "\n\nCore `v0.1.9` has 1 user-facing method(s) in the `SandboxUpdates` service that the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has a user-facing method in the `SandboxUpdates` service that the Go SDK does not wrap yet: `UpdateSandbox`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `SandboxUpdates.UpdateSandbox`\n\nUpdate the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}\n```\n\n```proto\nmessage UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}\n```\n\n## Where core implements it\n\n### `SandboxUpdates.UpdateSandbox`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/sandbox/image_update_tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/raw.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the SandboxUpdates service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods UpdateSandbox.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- SandboxUpdates.UpdateSandbox: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the SandboxUpdates service, behind an interface like the other sub-clients, that constructs pb.NewSandboxUpdatesClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", @@ -228,7 +228,7 @@ "title": "feat(sdk): wrap the SandboxUpdates service (core v0.1.9)" }, { - "body": "\n\nCore `v0.1.9` has 2 user-facing method(s) in the `ServiceDiscovery` service that the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.1.9` has 2 user-facing methods in the `ServiceDiscovery` service that the Go SDK does not wrap yet: `GetServiceRouteSnapshot` and `WatchServiceRoutes`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.1.9`](https://github.com/ai-openshell/sdk-go/tree/core/v0.1.9), or on `main` once that proposal is merged.\n\n## `ServiceDiscovery.GetServiceRouteSnapshot`\n\nRead installed, unexpired application routes in one explicit workspace.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L864-L870) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc GetServiceRouteSnapshot(GetServiceRouteSnapshotRequest) returns (GetServiceRouteSnapshotResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage GetServiceRouteSnapshotRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}\n```\n\n```proto\nmessage GetServiceRouteSnapshotResponse {\n ServiceRouteSnapshot snapshot = 1;\n}\n```\n\n## `ServiceDiscovery.WatchServiceRoutes`\n\nFull replacement views; reauthorize during the bounded watch lifetime.\n\n- Streaming: server streaming\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L873-L879) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc WatchServiceRoutes(WatchServiceRoutesRequest) returns (stream WatchServiceRoutesResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:read\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage WatchServiceRoutesRequest {\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n}\n```\n\n```proto\nmessage WatchServiceRoutesResponse {\n ServiceRouteSnapshot snapshot = 1;\n}\n```\n\n## Where core implements it\n\n### `ServiceDiscovery.GetServiceRouteSnapshot`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/service_discovery.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n### `ServiceDiscovery.WatchServiceRoutes`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/service_discovery.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the ServiceDiscovery service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods GetServiceRouteSnapshot, WatchServiceRoutes.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from core/v0.1.9, the core bump proposal for v0.1.9; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- ServiceDiscovery.GetServiceRouteSnapshot: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L864-L870; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs\n- ServiceDiscovery.WatchServiceRoutes: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L873-L879; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/service_discovery.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the ServiceDiscovery service, behind an interface like the other sub-clients, that constructs pb.NewServiceDiscoveryClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", diff --git a/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json b/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json index 57c32b2..2ed1a1a 100644 --- a/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json +++ b/hack/automation/testdata/rpc-issues/planner/no-marker/expected.json @@ -1,7 +1,7 @@ [ { "action": "open", - "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "method:OpenShell.ForwardTcp", "labels": [ "help wanted", diff --git a/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json b/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json index 28c26eb..eb0e5d5 100644 --- a/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json +++ b/hack/automation/testdata/rpc-issues/planner/unannotated-served/expected.json @@ -1,7 +1,7 @@ [ { "action": "open", - "body": "\n\nCore `v0.2.0` has `OpenShell.Ping`, a user-facing RPC the Go SDK does not wrap yet.", + "body": "\n\nCore `v0.2.0` has `OpenShell.Ping`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.Ping`\n\nPing does something useful.\n\n- Streaming: unary\n- Authorization: no authorization annotation. The gateway treats unannotated methods as user-callable, so this issue includes it; core should add the annotation.\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc Ping(PingRequest) returns (PingResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage PingRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage PingResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.Ping`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Ping RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Ping: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "method:OpenShell.Ping", "labels": [ "help wanted", From 1ba712ceca0310c326edee52b42009d3eec6e7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:18:20 +0100 Subject: [PATCH 08/23] feat(automation): update RPC coverage issues when their content changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An open issue whose rendered body differs, or whose base or readiness labels are missing or wrong, gets an update action with only the changed parts. Labels other than rpc-coverage, help wanted, rpc:ready, and rpc:blocked are never removed. Signed-off-by: Roland Huß --- hack/automation/rpc-issues.jq | 24 ++++++++++++++++++- .../planner/backfill-v0.1.9/expected.json | 2 +- .../rpc-issues/planner/idempotent/input.json | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index 559faed..9e1f854 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -104,6 +104,17 @@ def group_buildability: def readiness: if group_buildability == "built" then "rpc:ready" else "rpc:blocked" end; +# Label changes for an issue: add the missing base and readiness labels, +# remove only a wrong readiness label. fields holds add_labels and +# remove_labels when they are not empty. +def label_changes($current; $ready): + (base_labels + [$ready]) as $want + | ([$want[] | select(IN($current[]) | not)] | sort) as $add + | ([$current[] | select(IN(readiness_labels[])) | select(. != $ready)] | unique) as $remove + | {add: $add, remove: $remove, + fields: ((if ($add | length) > 0 then {add_labels: $add} else {} end) + + (if ($remove | length) > 0 then {remove_labels: $remove} else {} end))}; + def code_list: map("`" + . + "`") | if length <= 2 then join(" and ") else (.[:-1] | join(", ")) + ", and " + .[-1] end; def streaming_kind: @@ -170,7 +181,7 @@ def brief($ctx): | ($ctx.rows | group_buildability) as $b | [$ctx.rows[].method] as $methods | (if $g.kind == "service" then - "Wrap the \($g.service) service of OpenShell core in the OpenShell Go SDK (https://github.com/\($ctx.repo)): methods \($methods | join(", "))." + "Wrap the \($g.service) service of OpenShell core in the OpenShell Go SDK (https://github.com/\($ctx.repo)): \(if ($methods | length) == 1 then "method" else "methods" end) \($methods | join(", "))." else "Wrap the \($g.service).\($g.method) RPC of OpenShell core in the OpenShell Go SDK (https://github.com/\($ctx.repo))." end) @@ -302,6 +313,17 @@ def plan: body: render_body($g.ctx), labels: (base_labels + [$g.rows | readiness] | sort)} else empty end + elif $g.issue.status == "open" and ($g.rows | length) > 0 then + # FR-009, FR-023: rewrite a changed body, add or swap the base and + # readiness labels; other labels stay. + render_body($g.ctx) as $body + | label_changes($g.issue.labels; $g.rows | readiness) as $lc + | ($body != ($g.issue.body // "" | normalize)) as $changed + | if $changed or ($lc.add | length) > 0 or ($lc.remove | length) > 0 then + {action: "update", number: $g.issue.number, group: $g.group.id} + + (if $changed then {body: $body} else {} end) + + $lc.fields + else empty end else empty end] | sort_by(.group, .action); diff --git a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json index 628a6e1..4d4fb52 100644 --- a/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json +++ b/hack/automation/testdata/rpc-issues/planner/backfill-v0.1.9/expected.json @@ -45,7 +45,7 @@ }, { "action": "open", - "body": "\n\nCore `v0.1.9` has a user-facing method in the `SandboxUpdates` service that the Go SDK does not wrap yet: `UpdateSandbox`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `SandboxUpdates.UpdateSandbox`\n\nUpdate the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}\n```\n\n```proto\nmessage UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}\n```\n\n## Where core implements it\n\n### `SandboxUpdates.UpdateSandbox`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/sandbox/image_update_tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/raw.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the SandboxUpdates service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods UpdateSandbox.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- SandboxUpdates.UpdateSandbox: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the SandboxUpdates service, behind an interface like the other sub-clients, that constructs pb.NewSandboxUpdatesClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "body": "\n\nCore `v0.1.9` has a user-facing method in the `SandboxUpdates` service that the Go SDK does not wrap yet: `UpdateSandbox`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `SandboxUpdates.UpdateSandbox`\n\nUpdate the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}\n```\n\n```proto\nmessage UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}\n```\n\n## Where core implements it\n\n### `SandboxUpdates.UpdateSandbox`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/sandbox/image_update_tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/raw.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the SandboxUpdates service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): method UpdateSandbox.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- SandboxUpdates.UpdateSandbox: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the SandboxUpdates service, behind an interface like the other sub-clients, that constructs pb.NewSandboxUpdatesClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "group": "service:SandboxUpdates", "labels": [ "help wanted", diff --git a/hack/automation/testdata/rpc-issues/planner/idempotent/input.json b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json index 5ff7530..a3eef21 100644 --- a/hack/automation/testdata/rpc-issues/planner/idempotent/input.json +++ b/hack/automation/testdata/rpc-issues/planner/idempotent/input.json @@ -215,7 +215,7 @@ "title": "feat(sdk): wrap OpenShell.GetSandboxProviderStatus (core v0.1.9)" }, { - "body": "\n\nCore `v0.1.9` has a user-facing method in the `SandboxUpdates` service that the Go SDK does not wrap yet: `UpdateSandbox`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `SandboxUpdates.UpdateSandbox`\n\nUpdate the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}\n```\n\n```proto\nmessage UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}\n```\n\n## Where core implements it\n\n### `SandboxUpdates.UpdateSandbox`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/sandbox/image_update_tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/raw.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the SandboxUpdates service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods UpdateSandbox.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- SandboxUpdates.UpdateSandbox: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the SandboxUpdates service, behind an interface like the other sub-clients, that constructs pb.NewSandboxUpdatesClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "body": "\n\nCore `v0.1.9` has a user-facing method in the `SandboxUpdates` service that the Go SDK does not wrap yet: `UpdateSandbox`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `SandboxUpdates.UpdateSandbox`\n\nUpdate the workload image, command, environment, labels, or annotations of a\nstopped sandbox while preserving its identity and retained storage. Requires\ncompute-driver support for the selected changes and explicit gateway activation\nof sandbox updates.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:write`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896) at core `v0.1.9`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc UpdateSandbox(UpdateSandboxRequest) returns (SandboxResponse) {\n option (openshell.options.v1.authorization) = {\n auth_mode: \"bearer\"\n scope: \"sandbox:write\"\n workspace_role: \"user\"\n };\n}\n```\n\nRequest and response messages:\n\n```proto\nmessage SandboxResponse {\n Sandbox sandbox = 1;\n // Service URLs created by CreateSandbox, keyed by service name. The empty\n // key identifies the unnamed service. Other sandbox RPCs return an empty map.\n map service_urls = 2;\n}\n```\n\n```proto\nmessage UpdateSandboxRequest {\n // Workspace scope. Only a named workspace selection is accepted.\n openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;\n // Canonical name of the existing sandbox; this is not a rename or upsert.\n string name = 2;\n // Nonempty OCI workload image reference. This does not change trusted runtime\n // images or reseed an existing workspace.\n optional string image = 3;\n // Replace workload argv; an empty list restores image-resolved default shell behavior.\n SandboxCommandUpdate command = 6;\n // Replace sandbox-level overrides. Empty clears overrides; template defaults remain.\n SandboxMapUpdate environment = 7;\n // Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.\n SandboxMapUpdate labels = 8;\n SandboxMapUpdate annotations = 9;\n // Required nonzero resource version read by the caller.\n uint64 expected_resource_version = 4;\n // Optional nonzero UUID for durable at-most-once admission.\n string request_id = 5;\n}\n```\n\n## Where core implements it\n\n### `SandboxUpdates.UpdateSandbox`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs), [`crates/openshell-server/src/grpc/sandbox/image_update_tests.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): found in [`sdk/typescript/src/raw.test.ts`](https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts)\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the SandboxUpdates service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): method UpdateSandbox.\n\nCore version: NVIDIA/OpenShell at tag v0.1.9.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- SandboxUpdates.UpdateSandbox: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.1.9/proto/openshell.proto#L890-L896; core server: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/mod.rs, https://github.com/NVIDIA/OpenShell/blob/v0.1.9/crates/openshell-server/src/grpc/sandbox/image_update_tests.rs; core TypeScript SDK: https://github.com/NVIDIA/OpenShell/blob/v0.1.9/sdk/typescript/src/raw.test.ts\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the SandboxUpdates service, behind an interface like the other sub-clients, that constructs pb.NewSandboxUpdatesClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", "labels": [ "help wanted", "rpc-coverage", From 0e1516a469e905612e0368a2ce653aea30eefb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:22:12 +0100 Subject: [PATCH 09/23] fix(automation): describe partially wrapped services and new proto files correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A service issue for a service the SDK already uses no longer claims the SDK wraps none of its methods or asks for a new sub-client. Issues that need bindings generation name the bump branch when the pinned core tag lacks the proto file. --plan-input needs only jq. Signed-off-by: Roland Huß --- hack/automation/rpc-issues.jq | 24 +++++++++++++++++++----- hack/automation/rpc-issues.sh | 5 ++++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index 9e1f854..c021007 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -172,7 +172,10 @@ def buildability_text($ctx): else "**Blocked on bindings generation**: the SDK does not generate bindings for " + ([$ctx.rows[] | select(.buildability == "needs-bindings") | "proto/" + .file] | unique | code_list) - + " yet. Add the `M` option for the file to both plugins in `buf.gen.yaml` and run `mise run proto:gen` first." + + " yet. Add the `M` option for the file to both plugins in `buf.gen.yaml` and run `mise run proto:gen` first. " + + "If the core tag pinned on `main` does not contain the file yet, do this on the bump branch " + + (if $ctx.bump_branch_exists then "[`core/\($ctx.tag)`](\($branch_url))." + else "`core/\($ctx.tag)`, which core-watch opens as the bump proposal for core `\($ctx.tag)`; it does not exist yet." end) end; # The implementation brief: plain text, copied as the task description. @@ -193,9 +196,11 @@ def brief($ctx): elif $b == "bump-pending" then "Branch: core/\($ctx.tag), the core bump proposal for \($ctx.tag), which core-watch has not opened yet; start once it exists." else - "Branch: start from main. First add the M option for " + "Branch: start from main if the core tag pinned there (buf.gen.yaml, inputs[0].tag) contains " + ([$ctx.rows[] | select(.buildability == "needs-bindings") | "proto/" + .file] | unique | join(" and ")) - + " to both plugins in buf.gen.yaml and run `mise run proto:gen`." + + ", otherwise from core/\($ctx.tag), the core bump proposal for \($ctx.tag)" + + (if $ctx.bump_branch_exists then "" else " (core-watch has not opened it yet)" end) + + ". First add the M option for the file to both plugins in buf.gen.yaml and run `mise run proto:gen`." end) + "\n\nRead first:\n" + "- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n" @@ -207,8 +212,10 @@ def brief($ctx): | join("\n")) + "\n" + "- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n" + "\nDeliverables:\n" - + (if $g.kind == "service" then + + (if $g.kind == "service" and ($ctx.service_used | not) then "- A sub-client in openshell/v1 for the \($g.service) service, behind an interface like the other sub-clients, that constructs pb.New\($g.service)Client(conn) and is reachable from Client.\n" + elif $g.kind == "service" then + "- The methods in openshell/v1, on the sub-client that already uses pb.New\($g.service)Client(conn), behind its interface.\n" else "- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n" end) @@ -231,7 +238,11 @@ def render_body($ctx): "Core `\($ctx.tag)` has " + (if ($ctx.rows | length) == 1 then "a user-facing method" else "\($ctx.rows | length) user-facing methods" end) + " in the `\($g.service)` service that the Go SDK does not wrap yet: \($m.methods | code_list). " - + "The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole." + + (if $ctx.service_used then + "The SDK already uses the service; this issue tracks the methods it does not wrap yet." + else + "The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole." + end) else "Core `\($ctx.tag)` has `\($g.service).\($g.method)`, a user-facing RPC that the Go SDK does not wrap yet." end) @@ -304,6 +315,9 @@ def plan: | ($m + {id: $id, first_seen: ($m.first_seen // $in.tag)}) as $group | {group: $group, issue: $issue, rows: $grows} | . + {ctx: {template: $template, tag: $in.tag, repo: $in.repo, core_repo: $in.core_repo, + bump_branch_exists: ($in.bump_branch_exists == true), + service_used: (($group.service | IN($bound[])) + or any($rows[]; .service == $group.service and .user_facing and .is_covered)), group: $group, rows: $grows}}] | [.[] | . as $g diff --git a/hack/automation/rpc-issues.sh b/hack/automation/rpc-issues.sh index b2743ba..e22491c 100755 --- a/hack/automation/rpc-issues.sh +++ b/hack/automation/rpc-issues.sh @@ -67,7 +67,10 @@ else [ -n "${BOT_LOGIN:-}" ] || usage "BOT_LOGIN must name the bot's login, for example 'ai-openshell-sdk-go[bot]'" [ "$(git rev-parse --show-toplevel)" = "$(pwd -P)" ] || die "run this from the root of the sdk-go clone" fi -for tool in jq gh git curl buf yq; do +# --plan-input needs only jq. +tools="jq" +[ -n "$plan_input" ] || tools="jq gh git curl buf yq" +for tool in $tools; do command -v "$tool" >/dev/null || die "$tool not found (run 'mise install')" done From 3563372cbfda1a7058064885f7679d70ced672e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:23:31 +0100 Subject: [PATCH 10/23] feat(automation): close and reopen RPC coverage issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An open issue with no applicable method left is closed with one comment that gives each tracked method's reason: covered, removed, excepted (quoting the exceptions list), or not-user-facing. A human reopen blocks a close as covered. An issue the automation closed is reopened with a comment when its methods apply again, unless a human closed the service issue. Signed-off-by: Roland Huß --- hack/automation/rpc-issues.jq | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index c021007..93d7f9f 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -115,6 +115,25 @@ def label_changes($current; $ready): fields: ((if ($add | length) > 0 then {add_labels: $add} else {} end) + (if ($remove | length) > 0 then {remove_labels: $remove} else {} end))}; +# Why a tracked method needs no issue any more: covered, removed (not in +# the image at the tag), excepted, not-user-facing, or tracked-elsewhere +# (another issue with an overlapping marker owns it). +def close_reason($r): + if $r == null then {reason: "removed"} + elif ($r.user_facing | not) then {reason: "not-user-facing", auth_mode: $r.auth_mode} + elif $r.excepted then {reason: "excepted", text: $r.exception_reason} + elif $r.is_covered then {reason: "covered"} + else {reason: "tracked-elsewhere"} end; + +def close_line($tag): + "- `\(.key)`: " + + if .reason == "covered" then "covered, the SDK calls it under `openshell/v1`." + elif .reason == "removed" then "removed, core `\($tag)` no longer has it." + elif .reason == "excepted" then "excepted, listed in `hack/automation/rpc-exceptions.txt`: \"\(.text)\"" + elif .reason == "not-user-facing" then + "not-user-facing, its auth mode at core `\($tag)` is `\(.auth_mode // "none")`, so it is not part of the client API." + else "tracked-elsewhere, another coverage issue tracks it." end; + def code_list: map("`" + . + "`") | if length <= 2 then join(" and ") else (.[:-1] | join(", ")) + ", and " + .[-1] end; def streaming_kind: @@ -338,6 +357,31 @@ def plan: + (if $changed then {body: $body} else {} end) + $lc.fields else empty end + elif $g.issue.status == "open" then + # FR-010, FR-011: no applicable method left; close with a reason per + # tracked method. A human reopen blocks a close as covered. + [$g.issue.marker.methods[] | ($g.group.service + "." + .) as $k + | {key: $k} + close_reason($by_key[$k])] as $reasons + | if $g.issue.last_event == "reopened" and $g.issue.last_actor_is_bot == false + and any($reasons[]; .reason == "covered") then empty + else + {action: "close", number: $g.issue.number, group: $g.group.id, + comment: ("Nothing left to track at core `\($in.tag)`:\n\n" + + ([$reasons[] | close_line($in.tag)] | join("\n")) + + "\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.")} + end + elif $g.issue.status == "bot-closed" and ($g.rows | length) > 0 + and (any($human_closed[]; .marker.kind == "service" and .marker.service == $g.group.service) | not) then + # FR-011: the automation closed it and it applies again. A service + # issue closed by a human suppresses every issue of the service. + label_changes($g.issue.labels; $g.rows | readiness) as $lc + | {action: "reopen", number: $g.issue.number, group: $g.group.id, + body: render_body($g.ctx), + comment: ("Reopening: at core `\($in.tag)`, " + + ([$g.rows[].key] | code_list) + + (if ($g.rows | length) == 1 then " is user-facing again and the Go SDK does not wrap it." + else " are user-facing again and the Go SDK does not wrap them." end))} + + $lc.fields else empty end] | sort_by(.group, .action); From a5b2bd913995af3ac6539a2eebd3b4a69d7d13a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:23:31 +0100 Subject: [PATCH 11/23] test(automation): add lifecycle fixtures for RPC coverage issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cover body and label updates, every close reason, human-closed and human-reopened issues, reopening, partial service coverage, methods joining a service issue, a dropped wrapper, foreign labels, duplicate markers, and exceptions before an issue exists. Signed-off-by: Roland Huß --- .../auto-closed-uncovered-again/expected.json | 9 + .../expected.json.license | 2 + .../auto-closed-uncovered-again/input.json | 109 +++++++++++ .../input.json.license | 2 + .../buildability-changed/expected.json | 14 ++ .../expected.json.license | 2 + .../planner/buildability-changed/input.json | 109 +++++++++++ .../buildability-changed/input.json.license | 2 + .../rpc-issues/planner/covered/expected.json | 8 + .../planner/covered/expected.json.license | 2 + .../rpc-issues/planner/covered/input.json | 110 +++++++++++ .../planner/covered/input.json.license | 2 + .../planner/definition-changed/expected.json | 8 + .../definition-changed/expected.json.license | 2 + .../planner/definition-changed/input.json | 109 +++++++++++ .../definition-changed/input.json.license | 2 + .../planner/duplicate-identity/expected.json | 8 + .../duplicate-identity/expected.json.license | 2 + .../planner/duplicate-identity/input.json | 123 ++++++++++++ .../duplicate-identity/input.json.license | 2 + .../excepted-before-open/expected.json | 1 + .../expected.json.license | 2 + .../planner/excepted-before-open/input.json | 100 ++++++++++ .../excepted-before-open/input.json.license | 2 + .../rpc-issues/planner/excepted/expected.json | 8 + .../planner/excepted/expected.json.license | 2 + .../rpc-issues/planner/excepted/input.json | 114 +++++++++++ .../planner/excepted/input.json.license | 2 + .../planner/foreign-label-kept/expected.json | 8 + .../foreign-label-kept/expected.json.license | 2 + .../planner/foreign-label-kept/input.json | 110 +++++++++++ .../foreign-label-kept/input.json.license | 2 + .../expected.json | 1 + .../expected.json.license | 2 + .../input.json | 179 ++++++++++++++++++ .../input.json.license | 2 + .../expected.json | 1 + .../expected.json.license | 2 + .../input.json | 157 +++++++++++++++ .../input.json.license | 2 + .../planner/human-closed/expected.json | 1 + .../human-closed/expected.json.license | 2 + .../planner/human-closed/input.json | 109 +++++++++++ .../planner/human-closed/input.json.license | 2 + .../human-reopened-covered/expected.json | 1 + .../expected.json.license | 2 + .../planner/human-reopened-covered/input.json | 110 +++++++++++ .../human-reopened-covered/input.json.license | 2 + .../human-reopened-removed/expected.json | 8 + .../expected.json.license | 2 + .../planner/human-reopened-removed/input.json | 74 ++++++++ .../human-reopened-removed/input.json.license | 2 + .../last-wrapper-dropped/expected.json | 19 ++ .../expected.json.license | 2 + .../planner/last-wrapper-dropped/input.json | 145 ++++++++++++++ .../last-wrapper-dropped/input.json.license | 2 + .../method-joins-service/expected.json | 8 + .../expected.json.license | 2 + .../planner/method-joins-service/input.json | 179 ++++++++++++++++++ .../method-joins-service/input.json.license | 2 + .../planner/mixed-close/expected.json | 8 + .../planner/mixed-close/expected.json.license | 2 + .../rpc-issues/planner/mixed-close/input.json | 111 +++++++++++ .../planner/mixed-close/input.json.license | 2 + .../planner/not-user-facing/expected.json | 8 + .../not-user-facing/expected.json.license | 2 + .../planner/not-user-facing/input.json | 109 +++++++++++ .../not-user-facing/input.json.license | 2 + .../partially-covered-service/expected.json | 8 + .../expected.json.license | 2 + .../partially-covered-service/input.json | 146 ++++++++++++++ .../input.json.license | 2 + .../rpc-issues/planner/removed/expected.json | 8 + .../planner/removed/expected.json.license | 2 + .../rpc-issues/planner/removed/input.json | 74 ++++++++ .../planner/removed/input.json.license | 2 + 76 files changed, 2488 insertions(+) create mode 100644 hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/covered/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/covered/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/covered/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/covered/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/definition-changed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/definition-changed/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/excepted/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-closed/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/mixed-close/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/mixed-close/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/removed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/removed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/removed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/removed/input.json.license diff --git a/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json new file mode 100644 index 0000000..5a3625a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json @@ -0,0 +1,9 @@ +[ + { + "action": "reopen", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "comment": "Reopening: at core `v0.2.0`, `OpenShell.ForwardTcp` is user-facing again and the Go SDK does not wrap it.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json.license b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json new file mode 100644 index 0000000..26c5ed0 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": true, + "last_event": "closed", + "number": 20, + "state": "CLOSED", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json.license b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/auto-closed-uncovered-again/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json b/hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json new file mode 100644 index 0000000..3e46ca9 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json @@ -0,0 +1,14 @@ +[ + { + "action": "update", + "add_labels": [ + "rpc:ready" + ], + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "number": 20, + "remove_labels": [ + "rpc:blocked" + ] + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/buildability-changed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json b/hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json new file mode 100644 index 0000000..f560b09 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json.license b/hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/buildability-changed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/covered/expected.json b/hack/automation/testdata/rpc-issues/planner/covered/expected.json new file mode 100644 index 0000000..b3a6cf9 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/covered/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.ForwardTcp`: covered, the SDK calls it under `openshell/v1`.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/covered/expected.json.license b/hack/automation/testdata/rpc-issues/planner/covered/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/covered/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/covered/input.json b/hack/automation/testdata/rpc-issues/planner/covered/input.json new file mode 100644 index 0000000..a7a62f0 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/covered/input.json @@ -0,0 +1,110 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/covered/input.json.license b/hack/automation/testdata/rpc-issues/planner/covered/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/covered/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json b/hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json new file mode 100644 index 0000000..51e8cc3 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "update", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/definition-changed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/definition-changed/input.json b/hack/automation/testdata/rpc-issues/planner/definition-changed/input.json new file mode 100644 index 0000000..7687dff --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/definition-changed/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/definition-changed/input.json.license b/hack/automation/testdata/rpc-issues/planner/definition-changed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/definition-changed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json new file mode 100644 index 0000000..b3a6cf9 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.ForwardTcp`: covered, the SDK calls it under `openshell/v1`.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json.license b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json new file mode 100644 index 0000000..62c73c6 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json @@ -0,0 +1,123 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 21, + "state": "OPEN", + "title": "t" + }, + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json.license b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/duplicate-identity/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json.license b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json new file mode 100644 index 0000000..0c65594 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json @@ -0,0 +1,100 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [ + { + "key": "OpenShell.ForwardTcp", + "reason": "The TCP client already forwards ports over SSH." + } + ], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json.license b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted-before-open/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/excepted/expected.json b/hack/automation/testdata/rpc-issues/planner/excepted/expected.json new file mode 100644 index 0000000..cd60c80 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.ForwardTcp`: excepted, listed in `hack/automation/rpc-exceptions.txt`: \"The TCP client already forwards ports over SSH.\"\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/excepted/expected.json.license b/hack/automation/testdata/rpc-issues/planner/excepted/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/excepted/input.json b/hack/automation/testdata/rpc-issues/planner/excepted/input.json new file mode 100644 index 0000000..42e6215 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted/input.json @@ -0,0 +1,114 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [ + { + "key": "OpenShell.ForwardTcp", + "reason": "The TCP client already forwards ports over SSH." + } + ], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/excepted/input.json.license b/hack/automation/testdata/rpc-issues/planner/excepted/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/excepted/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json new file mode 100644 index 0000000..51e8cc3 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "update", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json.license b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json new file mode 100644 index 0000000..56e4fb1 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json @@ -0,0 +1,110 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready", + "agent:adapt" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json.license b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/foreign-label-kept/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json.license b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json new file mode 100644 index 0000000..86d3966 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json @@ -0,0 +1,179 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A", + "Disc.B", + "Disc.C" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": false, + "last_event": "closed", + "number": 20, + "state": "CLOSED", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "A does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ARequest", + "source": "message ARequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.AResponse", + "source": "message AResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ARequest", + "response": "openshell.v1.AResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(ARequest) returns (AResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "B does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BRequest", + "source": "message BRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.BResponse", + "source": "message BResponse {}" + } + ], + "method": "B", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.BRequest", + "response": "openshell.v1.BResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc B(BRequest) returns (BResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "C does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CRequest", + "source": "message CRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.CResponse", + "source": "message CResponse {}" + } + ], + "method": "C", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.CRequest", + "response": "openshell.v1.CResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc C(CRequest) returns (CResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json.license b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-new-method/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json.license b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json new file mode 100644 index 0000000..4f237f8 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json @@ -0,0 +1,157 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A", + "Disc.B" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": false, + "last_event": "closed", + "number": 20, + "state": "CLOSED", + "title": "t" + }, + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": true, + "last_event": "closed", + "number": 21, + "state": "CLOSED", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "A does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ARequest", + "source": "message ARequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.AResponse", + "source": "message AResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ARequest", + "response": "openshell.v1.AResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(ARequest) returns (AResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "B does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BRequest", + "source": "message BRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.BResponse", + "source": "message BResponse {}" + } + ], + "method": "B", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.BRequest", + "response": "openshell.v1.BResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc B(BRequest) returns (BResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json.license b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed-service-suppresses/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed/expected.json b/hack/automation/testdata/rpc-issues/planner/human-closed/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/human-closed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed/input.json b/hack/automation/testdata/rpc-issues/planner/human-closed/input.json new file mode 100644 index 0000000..9f37163 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": false, + "last_event": "closed", + "number": 20, + "state": "CLOSED", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/human-closed/input.json.license b/hack/automation/testdata/rpc-issues/planner/human-closed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-closed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json.license b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json new file mode 100644 index 0000000..072d42b --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json @@ -0,0 +1,110 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": false, + "last_event": "reopened", + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json.license b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-covered/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json new file mode 100644 index 0000000..5e0f455 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.Gone`: removed, core `v0.2.0` no longer has it.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.Gone", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json new file mode 100644 index 0000000..9e56021 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json @@ -0,0 +1,74 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": false, + "last_event": "reopened", + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json.license b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/human-reopened-removed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json new file mode 100644 index 0000000..3db62b9 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json @@ -0,0 +1,19 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `Disc.A`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `Disc.A`\n\nA does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc A(ARequest) returns (AResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ARequest {\n string name = 1;\n}\n```\n\n```proto\nmessage AResponse {}\n```\n\n## Where core implements it\n\n### `Disc.A`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Disc.A RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Disc.A: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:Disc.A", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap Disc.A (core v0.2.0)" + }, + { + "action": "update", + "body": "\n\nCore `v0.2.0` has `Disc.B`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `Disc.B`\n\nB does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc B(BRequest) returns (BResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage BRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage BResponse {}\n```\n\n## Where core implements it\n\n### `Disc.B`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Disc.B RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Disc.B: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:Disc.B", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json.license b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json new file mode 100644 index 0000000..5f11d39 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json @@ -0,0 +1,145 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A", + "Disc.B" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "A does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ARequest", + "source": "message ARequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.AResponse", + "source": "message AResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ARequest", + "response": "openshell.v1.AResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(ARequest) returns (AResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "B does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BRequest", + "source": "message BRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.BResponse", + "source": "message BResponse {}" + } + ], + "method": "B", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.BRequest", + "response": "openshell.v1.BResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc B(BRequest) returns (BResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell", + "Disc" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json.license b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/last-wrapper-dropped/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json b/hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json new file mode 100644 index 0000000..a9f96ae --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "update", + "body": "\n\nCore `v0.2.0` has 3 user-facing methods in the `Disc` service that the Go SDK does not wrap yet: `A`, `B`, and `C`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `Disc.A`\n\nA does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc A(ARequest) returns (AResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ARequest {\n string name = 1;\n}\n```\n\n```proto\nmessage AResponse {}\n```\n\n## `Disc.B`\n\nB does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc B(BRequest) returns (BResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage BRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage BResponse {}\n```\n\n## `Disc.C`\n\nC does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc C(CRequest) returns (CResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage CRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage CResponse {}\n```\n\n## Where core implements it\n\n### `Disc.A`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n### `Disc.B`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n### `Disc.C`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Disc service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): methods A, B, C.\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Disc.A: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- Disc.B: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- Disc.C: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the Disc service, behind an interface like the other sub-clients, that constructs pb.NewDiscClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "service:Disc", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json.license b/hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/method-joins-service/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json b/hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json new file mode 100644 index 0000000..928a046 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json @@ -0,0 +1,179 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A", + "Disc.B", + "Disc.C" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "A does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ARequest", + "source": "message ARequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.AResponse", + "source": "message AResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ARequest", + "response": "openshell.v1.AResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(ARequest) returns (AResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "B does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BRequest", + "source": "message BRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.BResponse", + "source": "message BResponse {}" + } + ], + "method": "B", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.BRequest", + "response": "openshell.v1.BResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc B(BRequest) returns (BResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "C does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.CRequest", + "source": "message CRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.CResponse", + "source": "message CResponse {}" + } + ], + "method": "C", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.CRequest", + "response": "openshell.v1.CResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc C(CRequest) returns (CResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json.license b/hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/method-joins-service/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json b/hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json new file mode 100644 index 0000000..aba938d --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `Disc.A`: covered, the SDK calls it under `openshell/v1`.\n- `Disc.B`: removed, core `v0.2.0` no longer has it.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "service:Disc", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json.license b/hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/mixed-close/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/mixed-close/input.json b/hack/automation/testdata/rpc-issues/planner/mixed-close/input.json new file mode 100644 index 0000000..b57dcad --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/mixed-close/input.json @@ -0,0 +1,111 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "Disc.A" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "A does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ARequest", + "source": "message ARequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.AResponse", + "source": "message AResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ARequest", + "response": "openshell.v1.AResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(ARequest) returns (AResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell", + "Disc" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/mixed-close/input.json.license b/hack/automation/testdata/rpc-issues/planner/mixed-close/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/mixed-close/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json b/hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json new file mode 100644 index 0000000..e618db2 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.ForwardTcp`: not-user-facing, its auth mode at core `v0.2.0` is `sandbox`, so it is not part of the client API.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json.license b/hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/not-user-facing/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json b/hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json new file mode 100644 index 0000000..1d9ca4a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "sandbox", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json.license b/hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/not-user-facing/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json new file mode 100644 index 0000000..85d662a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "update", + "body": "\n\nCore `v0.2.0` has a user-facing method in the `Disc` service that the Go SDK does not wrap yet: `B`. The SDK already uses the service; this issue tracks the methods it does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `Disc.B`\n\nB does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc B(BRequest) returns (BResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage BRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage BResponse {}\n```\n\n## Where core implements it\n\n### `Disc.B`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Disc service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): method B.\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Disc.B: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The methods in openshell/v1, on the sub-client that already uses pb.NewDiscClient(conn), behind its interface.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "service:Disc", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json.license b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json new file mode 100644 index 0000000..ebf42b8 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json @@ -0,0 +1,146 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A", + "Disc.B" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "Disc.A" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "A does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ARequest", + "source": "message ARequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.AResponse", + "source": "message AResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ARequest", + "response": "openshell.v1.AResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(ARequest) returns (AResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "B does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.BRequest", + "source": "message BRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.BResponse", + "source": "message BResponse {}" + } + ], + "method": "B", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.BRequest", + "response": "openshell.v1.BResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc B(BRequest) returns (BResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell", + "Disc" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json.license b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/partially-covered-service/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/removed/expected.json b/hack/automation/testdata/rpc-issues/planner/removed/expected.json new file mode 100644 index 0000000..5e0f455 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/removed/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.Gone`: removed, core `v0.2.0` no longer has it.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.Gone", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/removed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/removed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/removed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/removed/input.json b/hack/automation/testdata/rpc-issues/planner/removed/input.json new file mode 100644 index 0000000..019f8ff --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/removed/input.json @@ -0,0 +1,74 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/removed/input.json.license b/hack/automation/testdata/rpc-issues/planner/removed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/removed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 From 8230d54d9e62c9119052a0e2f0e6b18a74a2a384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:25:18 +0100 Subject: [PATCH 12/23] ci: reconcile RPC coverage issues in core-watch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new step runs after the bump proposals, also when they failed, with the bot token. The manual input max_new_issues raises the new-issue limit for one run. Signed-off-by: Roland Huß --- .github/workflows/core-watch.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core-watch.yml b/.github/workflows/core-watch.yml index 9e0c8d8..7fea5a4 100644 --- a/.github/workflows/core-watch.yml +++ b/.github/workflows/core-watch.yml @@ -1,7 +1,8 @@ # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -# Opens one update proposal per new core release tag (hack/automation/). +# Opens one update proposal per new core release tag, then reconciles the RPC +# coverage issues against the newest core tag (hack/automation/). name: core-watch on: @@ -13,6 +14,10 @@ on: description: Core tag to propose (vX.Y.Z or vX.Y.Z-pre.N); empty proposes every new tag required: false default: "" + max_new_issues: + description: Limit for new RPC coverage issues in this run (default 10) + required: false + default: "" permissions: contents: read @@ -81,6 +86,16 @@ jobs: hack/automation/open-bump-pr.sh "$t" done + # Runs after a failed proposal step too, so issues can say that the + # proposal is pending; it needs only the bot token. + - name: Reconcile RPC coverage issues + if: ${{ !cancelled() && steps.app-token.outcome == 'success' }} + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + APP_SLUG: ${{ steps.app-token.outputs.app-slug }} + MAX_NEW: ${{ inputs.max_new_issues }} + run: BOT_LOGIN="${APP_SLUG}[bot]" hack/automation/rpc-issues.sh ${MAX_NEW:+--max-new "$MAX_NEW"} + - name: Report failure if: failure() env: From f10167ef215d3a9e1177a05b2be223389c364cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:25:18 +0100 Subject: [PATCH 13/23] feat(automation): link uncovered RPCs in the drift issue to coverage issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Huß --- hack/automation/update-drift-issue.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/hack/automation/update-drift-issue.sh b/hack/automation/update-drift-issue.sh index b04ad76..c4d99da 100755 --- a/hack/automation/update-drift-issue.sh +++ b/hack/automation/update-drift-issue.sh @@ -6,7 +6,8 @@ # Usage: update-drift-issue.sh [--dry-run] # # The report comes from drift-check.sh. The issue body is the report plus the -# "## Automation failures" section, which is carried over unchanged. With +# "## Automation failures" section, which is carried over unchanged; each +# uncovered RPC line links to its open RPC coverage issue (rpc-issues.sh). With # "Result: fail" or pending failures, the issue is created or its body # replaced. With "Result: pass" and no pending failures, an open issue is # closed with a comment, and nothing is created. @@ -27,6 +28,29 @@ done text=$(cat "$report") header=$(head -1 <<<"$text") + +# Link each "- Service.Method" line of the report to the open RPC coverage +# issue (rpc-issues.sh) whose marker lists the method; the lowest number wins. +links=$(gh issue list -R "$sdk_repo" --label rpc-coverage --state open --limit 500 --json number,body | + jq -r '.[] | .number as $n + | ((.body // "") | split("\n")[0] | sub("\r$"; "")) as $line + | [$line | capture("^$")] | .[0] // empty + | ([.f | splits(" +") | select(length > 0) | capture("^(?[a-z-]+)=(?.*)$") | {key: .k, value: .v}] + | from_entries) as $kv + | select(($kv.service // "") != "") + | ($kv.methods // "" | split(",")[] | select(length > 0)) + | "\($kv.service).\(.) \($n)"' | sort -k2,2n) || + { echo "ERROR: cannot list the rpc-coverage issues of $sdk_repo" >&2; exit 1; } +if [ -n "$links" ]; then + text=$(awk -v repo="$sdk_repo" ' + FILENAME == ARGV[1] { if (!($1 in issue)) issue[$1] = $2; next } + /^- [A-Za-z0-9_]+\.[A-Za-z0-9_]+$/ && (substr($0, 3) in issue) { + n = issue[substr($0, 3)] + print $0 " ([#" n "](https://github.com/" repo "/issues/" n "))" + next + } + { print }' <(printf '%s\n' "$links") <(printf '%s\n' "$text")) +fi case $header in *"Result: pass"*) result=pass ;; *"Result: fail"*) result=fail ;; From 36e4068a044d422b431112ab2756a8471ba8ed16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:25:18 +0100 Subject: [PATCH 14/23] docs(automation): document the RPC coverage issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Huß --- hack/automation/README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/hack/automation/README.md b/hack/automation/README.md index 748431b..5ef8487 100644 --- a/hack/automation/README.md +++ b/hack/automation/README.md @@ -11,14 +11,38 @@ Workflows run them with a token of the `ai-openshell-sdk-go` GitHub App (`ai-ope | `bump-pr-body.md` | | PR body template for `open-bump-pr.sh`. | | `tag-release.sh [--dry-run]` | `release:tag` | After a stable pin lands on `main`: create the lockstep tag `vX.Y.Z` and the GitHub release, then ask the Go module proxy for the version. | | `drift-check.sh --out ` | `core:drift` | Compare core `main` against the pin: `buf breaking`, regenerate and build, uncovered RPCs. Writes the markdown report. | -| `update-drift-issue.sh ` | | Create, update, or close the single `Core main drift` issue from a report. | +| `update-drift-issue.sh ` | | Create, update, or close the single `Core main drift` issue from a report; uncovered RPCs link to their open RPC coverage issues. | +| `rpc-issues.sh [--dry-run] [--max-new ] [--tag ]` | `core:rpc-issues` | Open, update, close, and reopen one issue per user-facing core RPC (or service) the SDK does not wrap, for the newest core tag. Needs `BOT_LOGIN`; `--plan-input ` plans a saved input document, `--dump-input ` saves one. | +| `rpc-issues.jq` | | The planner for `rpc-issues.sh`: input document in, actions and rendered bodies out; no network. | +| `rpc-issue-body.md` | | Issue body template for `rpc-issues.jq`. | +| `rpc-coverage.sh` | | The coverage rule shared by `rpc-issues.sh` and `drift-check.sh` (sourced, not run). | +| `rpc-issues-lib.sh` | | Exceptions list parser (sourced, not run). | +| `rpc-exceptions.txt` | | RPCs the SDK deliberately does not wrap, one `Service.Method reason` per line. | +| `rpc-issues-test.sh [--update]` | | Offline planner, coverage, and exceptions tests on `testdata/rpc-issues/`; part of `workflows:check`. | | `report-failure.sh ` | | Append a dated failure line to the drift issue. Called from `if: failure()` steps. | | `drift-issue.sh` | | Shared helpers for the two drift issue scripts (sourced, not run). | | `start-gateway.sh `, `stop-gateway.sh` | | Run the published gateway container for a core version with the Docker driver and a plaintext endpoint for the E2E lane, and collect its log. | | Workflow | Script | |----------|--------| -| `core-watch.yml` (hourly) | `core-tags.sh`, then `open-bump-pr.sh` per tag | +| `core-watch.yml` (hourly) | `core-tags.sh`, then `open-bump-pr.sh` per tag, then `rpc-issues.sh` | | `release-tag.yml` (push to `main`) | `tag-release.sh` | | `core-drift.yml` (nightly) | `drift-check.sh`, then `update-drift-issue.sh` | | `e2e.yml` (reusable) | `start-gateway.sh`, `mise run e2e`, `stop-gateway.sh` | + +## RPC coverage issues + +`rpc-issues.sh` keeps one GitHub issue (label `rpc-coverage`) per core RPC that end users can call and the SDK does not wrap yet, so every gap has an owner and a ready implementation brief. + +- **Selection**: it reads core's protos at the newest core release tag (pre-release or stable, as `core-tags.sh` orders them). + An RPC is user-facing when its authorization annotation has `auth_mode` `bearer` or `dual`; a method without an annotation counts only in a proto file the gateway serves (one with annotated methods), and its issue says the annotation is missing. + Plugin and driver protos, and `sandbox`, `peer`, `supervisor`, `operator`, and `unauthenticated` RPCs, never get issues. +- **Coverage**: an RPC is covered when a package under `openshell/v1` (tests and `fake/` excluded) that calls `NewClient(` also calls `.(` (`rpc-coverage.sh`, also used by `drift-check.sh`). +- **Grouping**: when the SDK wraps none of a service's user-facing methods, one issue tracks the whole service; otherwise each method gets its own issue. + The hidden marker on the first body line (``) is the issue's identity; an issue keeps the methods its marker lists, and new methods of a service join its open service issue. +- **Lifecycle**: each run opens missing issues, rewrites a body or the `rpc:ready` / `rpc:blocked` label when they change, closes an issue with a reason per method (`covered`, `removed`, `excepted`, `not-user-facing`), and reopens an issue it closed itself when the methods apply again. + An issue a maintainer closes stays closed (a closed service issue silences the whole service); an issue a maintainer reopens is never closed as `covered` again. +- **Excluding an RPC**: add `Service.Method reason` to `rpc-exceptions.txt`; the next run closes its issue with the reason. +- **Limit**: a run that would open more than 10 issues fails before any write and lists them. + If they are expected, run core-watch by hand with the input `max_new_issues`, or locally `mise run core:rpc-issues -- --max-new `. +- **Preview**: `BOT_LOGIN='ai-openshell-sdk-go[bot]' mise run core:rpc-issues -- --dry-run` prints every planned action with its body and changes nothing. From 02f7d4f5e82c9f0385e56d0582ed4e327ba0b8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:45:43 +0100 Subject: [PATCH 15/23] fix(automation): harden RPC coverage issue discovery and parsing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Parse the issue marker in one jq module (rpc-marker.jq) shared by the planner and update-drift-issue.sh; an issue with an empty body no longer aborts both scripts. - List coverage issues through the REST issues endpoint instead of gh issue list --label, which queries the lagging search index and stops at 500 results, and keep only issues the bot opened, so a marker in someone else's issue cannot close or suppress coverage issues. - Retry idempotent reads (core tags, buf build, core clone, branches, issues, events, labels) and bound the proto downloads and the core-watch step in time. - Count rpc declarations outside comments, including several on one line. - Fill the body template in one pass, so "{{...}}" in core comments stays. - For a proto file without bindings, send contributors to main only when its pinned tag declares the methods themselves, not just the file. - Link drift report lines best-effort: a failed listing leaves them unlinked instead of failing the nightly report. - Default BOT_LOGIN to ai-openshell-sdk-go[bot] and log closers and groups. - Test the needs-actors mode, bump-pending and needs-bindings bodies, a bot-closed service issue of a bound service, real definition changes, label swaps on reopen, the issue limit and dry-run output of rpc-issues.sh, malformed exception keys, and the drift links. Signed-off-by: Roland Huß --- .github/workflows/core-watch.yml | 1 + hack/automation/drift-issue.sh | 27 +- hack/automation/rpc-issues-test.sh | 106 ++++- hack/automation/rpc-issues.jq | 50 +- hack/automation/rpc-issues.sh | 93 ++-- hack/automation/rpc-marker.jq | 37 ++ hack/automation/testdata/rpc-issues/README.md | 5 +- .../rpc-issues/drift-links/expected.md | 8 + .../rpc-issues/drift-links/issues.json | 8 + .../drift-links/issues.json.license | 2 + .../testdata/rpc-issues/drift-links/report.md | 8 + .../rpc-issues/exceptions/bad-key.txt | 3 + .../expected-actors.json | 3 + .../expected-actors.json.license | 2 + .../actors-unknown-closed/expected.json | 1 + .../expected.json.license | 2 + .../planner/actors-unknown-closed/input.json | 109 +++++ .../actors-unknown-closed/input.json.license | 2 + .../expected-actors.json | 3 + .../expected-actors.json.license | 2 + .../actors-unknown-reopened/expected.json | 8 + .../expected.json.license | 2 + .../actors-unknown-reopened/input.json | 110 +++++ .../input.json.license | 2 + .../expected-actors.json | 3 + .../expected-actors.json.license | 2 + .../bot-closed-service-bound/expected.json | 24 + .../expected.json.license | 2 + .../bot-closed-service-bound/input.json | 216 +++++++++ .../input.json.license | 2 + .../planner/bump-pending/expected.json | 13 + .../bump-pending/expected.json.license | 2 + .../planner/bump-pending/input.json | 94 ++++ .../planner/bump-pending/input.json.license | 2 + .../planner/empty-body/expected.json | 13 + .../planner/empty-body/expected.json.license | 2 + .../rpc-issues/planner/empty-body/input.json | 106 +++++ .../planner/empty-body/input.json.license | 2 + .../planner/max-new-raised/expected.json | 123 +++++ .../max-new-raised/expected.json.license | 2 + .../planner/max-new-raised/input.json | 434 ++++++++++++++++++ .../planner/max-new-raised/input.json.license | 2 + .../planner/message-changed/expected.json | 8 + .../message-changed/expected.json.license | 2 + .../planner/message-changed/input.json | 108 +++++ .../message-changed/input.json.license | 2 + .../planner/needs-bindings/expected.json | 13 + .../needs-bindings/expected.json.license | 2 + .../planner/needs-bindings/input.json | 124 +++++ .../planner/needs-bindings/input.json.license | 2 + .../reopen-swaps-label/expected-actors.json | 3 + .../expected-actors.json.license | 2 + .../planner/reopen-swaps-label/expected.json | 15 + .../reopen-swaps-label/expected.json.license | 2 + .../planner/reopen-swaps-label/input.json | 109 +++++ .../reopen-swaps-label/input.json.license | 2 + .../planner/unchanged-body/expected.json | 1 + .../unchanged-body/expected.json.license | 2 + .../planner/unchanged-body/input.json | 108 +++++ .../planner/unchanged-body/input.json.license | 2 + hack/automation/update-drift-issue.sh | 35 +- 61 files changed, 2068 insertions(+), 112 deletions(-) create mode 100644 hack/automation/rpc-marker.jq create mode 100644 hack/automation/testdata/rpc-issues/drift-links/expected.md create mode 100644 hack/automation/testdata/rpc-issues/drift-links/issues.json create mode 100644 hack/automation/testdata/rpc-issues/drift-links/issues.json.license create mode 100644 hack/automation/testdata/rpc-issues/drift-links/report.md create mode 100644 hack/automation/testdata/rpc-issues/exceptions/bad-key.txt create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json create mode 100644 hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/bump-pending/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/bump-pending/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/empty-body/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/empty-body/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/empty-body/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/empty-body/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/message-changed/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/message-changed/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/message-changed/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/message-changed/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json create mode 100644 hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json create mode 100644 hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json create mode 100644 hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json.license diff --git a/.github/workflows/core-watch.yml b/.github/workflows/core-watch.yml index 7fea5a4..93ab555 100644 --- a/.github/workflows/core-watch.yml +++ b/.github/workflows/core-watch.yml @@ -90,6 +90,7 @@ jobs: # proposal is pending; it needs only the bot token. - name: Reconcile RPC coverage issues if: ${{ !cancelled() && steps.app-token.outcome == 'success' }} + timeout-minutes: 10 env: GH_TOKEN: ${{ steps.app-token.outputs.token }} APP_SLUG: ${{ steps.app-token.outputs.app-slug }} diff --git a/hack/automation/drift-issue.sh b/hack/automation/drift-issue.sh index 3c6ce95..aef9d60 100644 --- a/hack/automation/drift-issue.sh +++ b/hack/automation/drift-issue.sh @@ -1,9 +1,11 @@ # SPDX-License-Identifier: Apache-2.0 # drift-issue.sh: shared helpers for the "Core main drift" issue. Sourced by -# update-drift-issue.sh and report-failure.sh. +# update-drift-issue.sh, report-failure.sh, and rpc-issues-test.sh. # shellcheck shell=bash +drift_automation_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) + sdk_repo=${SDK_REPO:-ai-openshell/sdk-go} drift_title="Core main drift" drift_label=core-drift @@ -33,3 +35,26 @@ compose_body() { fi printf '%s\n' "Automation appends a dated line here when core-watch, release-tag, or core-drift fails. Delete a line once it is handled; the issue closes when the drift check passes and no lines are left." } + +# link_uncovered_rpcs : print the report with +# each "- Service.Method" line followed by a link to the RPC coverage issue +# whose marker (rpc-marker.jq) lists the method; the lowest number wins. +# issues.json is a JSON array of {number, body}. +link_uncovered_rpcs() { + local links + links=$(jq -L "$drift_automation_dir" -r 'include "rpc-marker"; + .[] | .number as $n | (.body | parse_marker) // empty | "\(.service).\(.methods[]) \($n)"' "$1" | + sort -k2,2n) || return 1 + if [ -z "$links" ]; then + printf '%s\n' "$2" + return 0 + fi + awk -v repo="$sdk_repo" ' + FILENAME == ARGV[1] { if (!($1 in issue)) issue[$1] = $2; next } + /^- [A-Za-z0-9_]+\.[A-Za-z0-9_]+$/ && (substr($0, 3) in issue) { + n = issue[substr($0, 3)] + print $0 " ([#" n "](https://github.com/" repo "/issues/" n "))" + next + } + { print }' <(printf '%s\n' "$links") <(printf '%s\n' "$2") +} diff --git a/hack/automation/rpc-issues-test.sh b/hack/automation/rpc-issues-test.sh index 7059466..c141272 100755 --- a/hack/automation/rpc-issues-test.sh +++ b/hack/automation/rpc-issues-test.sh @@ -7,9 +7,12 @@ # # Run from the root of an sdk-go clone. Runs the planner (rpc-issues.jq) on # every hack/automation/testdata/rpc-issues/planner//input.json and -# compares the result with expected.json, checks the coverage helper on the -# miniature SDK tree in coverage/, and the exceptions parser on exceptions/. -# --update rewrites the planner expected.json files instead of comparing. +# compares the result with expected.json (and, where present, its +# needs-actors mode with expected-actors.json), runs rpc-issues.sh offline +# with --plan-input, checks the coverage helper on the miniature SDK tree in +# coverage/, the exceptions parser on exceptions/, and the drift issue links +# on drift-links/. --update rewrites the planner expected files instead of +# comparing. # Exits 1 on any mismatch. set -euo pipefail @@ -19,6 +22,8 @@ data=$here/testdata/rpc-issues . "$here/rpc-issues-lib.sh" # shellcheck source=hack/automation/rpc-coverage.sh . "$here/rpc-coverage.sh" +# shellcheck source=hack/automation/drift-issue.sh +. "$here/drift-issue.sh" die() { echo "ERROR: $*" >&2; exit 1; } @@ -41,24 +46,57 @@ for dir in "$data"/planner/*/; do [ -d "$dir" ] || continue name=$(basename "$dir") [ -f "$dir/input.json" ] || { fail "$name: no input.json"; continue; } - if ! jq -S -f "$here/rpc-issues.jq" --rawfile template "$here/rpc-issue-body.md" \ - "$dir/input.json" >"$work/actual.json" 2>"$work/err"; then - fail "$name: planner failed: $(cat "$work/err")" - continue - fi - if [ "$update" -eq 1 ]; then - cp "$work/actual.json" "$dir/expected.json" - [ -f "$dir/expected.json.license" ] || cp "$dir/input.json.license" "$dir/expected.json.license" 2>/dev/null || true - echo "updated $name" - continue - fi - [ -f "$dir/expected.json" ] || { fail "$name: no expected.json (run with --update)"; continue; } - jq -S . "$dir/expected.json" >"$work/expected.json" - if diff -u "$work/expected.json" "$work/actual.json" >"$work/diff"; then - echo "ok $name" + for mode in plan needs-actors; do + exp=expected.json label=$name + if [ "$mode" = needs-actors ]; then + exp=expected-actors.json label="$name (needs-actors)" + [ -f "$dir/$exp" ] || continue + fi + if ! jq -S -L "$here" -f "$here/rpc-issues.jq" --rawfile template "$here/rpc-issue-body.md" \ + --arg mode "$mode" "$dir/input.json" >"$work/actual.json" 2>"$work/err"; then + fail "$label: planner failed: $(cat "$work/err")" + continue + fi + if [ "$update" -eq 1 ]; then + cp "$work/actual.json" "$dir/$exp" + [ -f "$dir/$exp.license" ] || cp "$dir/input.json.license" "$dir/$exp.license" 2>/dev/null || true + echo "updated $label" + continue + fi + [ -f "$dir/$exp" ] || { fail "$label: no $exp (run with --update)"; continue; } + jq -S . "$dir/$exp" >"$work/expected.json" + if diff -u "$work/expected.json" "$work/actual.json" >"$work/diff"; then + echo "ok $label" + else + fail "$label" + cat "$work/diff" + fi + done +done + +# rpc-issues.sh offline: the issue limit, its override, and the dry-run output. +rpc_issues() { "$here/rpc-issues.sh" --plan-input "$@" >"$work/out" 2>"$work/err"; } +if rpc_issues "$data/planner/too-many-new/input.json"; then + fail "script too-many-new: exit 0" +elif [ "$(grep -c '^ - feat(sdk): wrap ' "$work/err")" = 11 ] && grep -q 'nothing was changed' "$work/err"; then + echo "ok script too-many-new" +else + fail "script too-many-new: $(cat "$work/err")" +fi +if rpc_issues "$data/planner/too-many-new/input.json" --max-new 11 && + grep -q '^dry-run: core v0.2.0: 11 to open, 0 to update, 0 to close, 0 to reopen$' "$work/out"; then + echo "ok script max-new" +else + fail "script max-new: $(cat "$work/out" "$work/err")" +fi +for c in "backfill-v0.1.9:^dry-run: open \"feat\\(sdk\\): wrap the ServiceDiscovery service \\(core v0\\.1\\.9\\)\" \\(labels help wanted, rpc-coverage, rpc:blocked\\)$" \ + "message-changed:^dry-run: update #20 method:OpenShell\\.ForwardTcp$" \ + "reopen-swaps-label:^dry-run: reopen #20 method:OpenShell\\.ForwardTcp \\(labels \\+rpc:ready -rpc:blocked\\) with comment:$" \ + "covered:^dry-run: close #[0-9]+ method:OpenShell\.[A-Za-z]+ with comment:$"; do + if rpc_issues "$data/planner/${c%%:*}/input.json" && grep -qE "${c#*:}" "$work/out" && grep -q '^ | ' "$work/out"; then + echo "ok script dry-run ${c%%:*}" else - fail "$name" - cat "$work/diff" + fail "script dry-run ${c%%:*}: $(cat "$work/out" "$work/err")" fi done @@ -78,12 +116,30 @@ if rpc_parse_exceptions "$data/exceptions/valid.txt" >"$work/exc.json" 2>"$work/ else fail "exceptions/valid $(cat "$work/err")" fi -if rpc_parse_exceptions "$data/exceptions/missing-reason.txt" >/dev/null 2>"$work/err"; then - fail "exceptions/missing-reason: parsed without error" -elif grep -q '^ERROR: .*missing-reason.txt:3: ' "$work/err"; then - echo "ok exceptions/missing-reason" +if jq -e '. == [{key: "OpenShell.ForwardTcp", reason: "The TCP client already forwards ports over SSH."}, + {key: "ServiceDiscovery.WatchServiceRoutes", reason: "Only ingress controllers consume routes."}]' \ + "$work/exc.json" >/dev/null; then + echo "ok exceptions/valid entries" +else + fail "exceptions/valid entries: $(cat "$work/exc.json")" +fi +for c in missing-reason:3:has.no.reason bad-key:3:is.not.Service.Method; do + f=${c%%:*} rest=${c#*:} + if rpc_parse_exceptions "$data/exceptions/$f.txt" >/dev/null 2>"$work/err"; then + fail "exceptions/$f: parsed without error" + elif grep -qE "^ERROR: .*$f.txt:${rest%%:*}: .*${rest#*:}" "$work/err"; then + echo "ok exceptions/$f" + else + fail "exceptions/$f: unexpected error: $(cat "$work/err")" + fi +done + +# Drift issue links to coverage issues. +if link_uncovered_rpcs "$data/drift-links/issues.json" "$(cat "$data/drift-links/report.md")" >"$work/linked.md" 2>"$work/err" && + diff -u "$data/drift-links/expected.md" "$work/linked.md"; then + echo "ok drift-links" else - fail "exceptions/missing-reason: unexpected error: $(cat "$work/err")" + fail "drift-links $(cat "$work/err")" fi [ "$failed" -eq 0 ] || { echo "rpc-issues tests failed" >&2; exit 1; } diff --git a/hack/automation/rpc-issues.jq b/hack/automation/rpc-issues.jq index 93d7f9f..3ceeae2 100644 --- a/hack/automation/rpc-issues.jq +++ b/hack/automation/rpc-issues.jq @@ -4,8 +4,10 @@ # document in, one action list out; rpc-issues.sh gathers the input and # applies the actions, rpc-issues-test.sh runs this on fixtures. # -# jq -f rpc-issues.jq --rawfile template rpc-issue-body.md input.json -# jq -f rpc-issues.jq --rawfile template rpc-issue-body.md --arg mode needs-actors input.json +# jq -L hack/automation -f rpc-issues.jq --rawfile template rpc-issue-body.md input.json +# jq -L hack/automation -f rpc-issues.jq --rawfile template rpc-issue-body.md --arg mode needs-actors input.json +# +# The issue marker (parse_marker, render_marker) lives in rpc-marker.jq. # # Input: repo, core_repo, tag, max_new, rpcs (one row per method of every # non-google proto file), services_bound, covered, built, generated_files, @@ -21,9 +23,10 @@ # would be opened. With mode needs-actors, the sorted numbers of the issues # whose last close or reopen actor the plan depends on. +include "rpc-marker"; + def base_labels: ["help wanted", "rpc-coverage"]; def readiness_labels: ["rpc:blocked", "rpc:ready"]; -def ident: test("^[A-Za-z0-9_]+$"); # Per-RPC flags. def rpc_rows: @@ -50,33 +53,6 @@ def rpc_rows: } | .applicable = (.user_facing and (.is_covered | not) and (.excepted | not))]; -# Marker on the first body line: -# -# -# Returns null when the line is not a valid marker. -def parse_marker: - ((. // "") | split("\n")[0] | sub("\r$"; "")) as $line - | [$line | capture("^$")] | .[0] - | if . == null then null else - ([.f | splits(" +") | select(length > 0) | capture("^(?[a-z-]+)=(?.*)$") | {key: .k, value: .v}] - | from_entries) as $kv - | ($kv.service // "") as $s - | (($kv.methods // "") | split(",") | map(select(length > 0 and ident)) | unique) as $ms - | if $kv.kind == "service" and ($s | ident) then - {kind: "service", service: $s, id: ("service:" + $s), first_seen: $kv["first-seen"], methods: $ms} - elif $kv.kind == "method" and ($s | ident) and (($kv.method // "") | ident) then - {kind: "method", service: $s, method: $kv.method, id: ("method:" + $s + "." + $kv.method), - first_seen: $kv["first-seen"], methods: [$kv.method]} - else null end - end; - -def render_marker: - if .kind == "service" then - "" - else - "" - end; - def title: if .kind == "service" then "feat(sdk): wrap the \(.service) service (core \(.first_seen))" else "feat(sdk): wrap \(.service).\(.method) (core \(.first_seen))" end; @@ -88,9 +64,10 @@ def issue_status: elif .last_actor_is_bot == true then "bot-closed" else "human-closed" end; -# Replace {{KEY}} placeholders of a template with the values of an object. +# Replace the {{KEY}} placeholders of a template with the values of an +# object in one pass, so text from core that contains "{{...}}" stays as is. def fill($vals): - reduce ($vals | to_entries[]) as $e (.; split("{{" + $e.key + "}}") | join($e.value)); + gsub("\\{\\{(?[A-Z_]+)\\}\\}"; $vals[.k] // "{{\(.k)}}"); def normalize: gsub("\r"; "") | sub("\\s+$"; ""); @@ -132,7 +109,7 @@ def close_line($tag): elif .reason == "excepted" then "excepted, listed in `hack/automation/rpc-exceptions.txt`: \"\(.text)\"" elif .reason == "not-user-facing" then "not-user-facing, its auth mode at core `\($tag)` is `\(.auth_mode // "none")`, so it is not part of the client API." - else "tracked-elsewhere, another coverage issue tracks it." end; + else "tracked-elsewhere, another coverage issue lists it in its marker and tracks it." end; def code_list: map("`" + . + "`") | if length <= 2 then join(" and ") else (.[:-1] | join(", ")) + ", and " + .[-1] end; @@ -192,7 +169,7 @@ def buildability_text($ctx): "**Blocked on bindings generation**: the SDK does not generate bindings for " + ([$ctx.rows[] | select(.buildability == "needs-bindings") | "proto/" + .file] | unique | code_list) + " yet. Add the `M` option for the file to both plugins in `buf.gen.yaml` and run `mise run proto:gen` first. " - + "If the core tag pinned on `main` does not contain the file yet, do this on the bump branch " + + "If the core tag pinned on `main` does not contain every method listed here yet, do this on the bump branch " + (if $ctx.bump_branch_exists then "[`core/\($ctx.tag)`](\($branch_url))." else "`core/\($ctx.tag)`, which core-watch opens as the bump proposal for core `\($ctx.tag)`; it does not exist yet." end) end; @@ -215,7 +192,8 @@ def brief($ctx): elif $b == "bump-pending" then "Branch: core/\($ctx.tag), the core bump proposal for \($ctx.tag), which core-watch has not opened yet; start once it exists." else - "Branch: start from main if the core tag pinned there (buf.gen.yaml, inputs[0].tag) contains " + "Branch: start from main if the core tag pinned there (buf.gen.yaml, inputs[0].tag) already declares " + + ([$ctx.rows[].method] | join(", ")) + " in " + ([$ctx.rows[] | select(.buildability == "needs-bindings") | "proto/" + .file] | unique | join(" and ")) + ", otherwise from core/\($ctx.tag), the core bump proposal for \($ctx.tag)" + (if $ctx.bump_branch_exists then "" else " (core-watch has not opened it yet)" end) @@ -397,7 +375,7 @@ if ($ARGS.named.mode // "plan") == "needs-actors" then | select(.state != "OPEN") | select(.marker.service | IN($app_services[])) | .number] - + [if ($actions | type) == "array" then $actions[] | select(.action == "close") | .number else empty end]) + + [$actions[] | select(.action == "close") | .number]) | unique else plan as $actions diff --git a/hack/automation/rpc-issues.sh b/hack/automation/rpc-issues.sh index e22491c..378e395 100755 --- a/hack/automation/rpc-issues.sh +++ b/hack/automation/rpc-issues.sh @@ -21,15 +21,17 @@ # --dry-run) # --dump-input write the assembled input document, then continue # -# Environment: GH_TOKEN, BOT_LOGIN (the bot's login, for example -# "ai-openshell-sdk-go[bot]"; required unless --plan-input), CORE_REPO -# (default NVIDIA/OpenShell), SDK_REPO (default ai-openshell/sdk-go), -# RPC_EXCEPTIONS (default hack/automation/rpc-exceptions.txt). +# Environment: GH_TOKEN, BOT_LOGIN (the login of the bot that opens the +# issues, default "ai-openshell-sdk-go[bot]"; only issues it opened are +# managed), CORE_REPO (default NVIDIA/OpenShell), SDK_REPO (default +# ai-openshell/sdk-go), RPC_EXCEPTIONS (default +# hack/automation/rpc-exceptions.txt). # Exit codes: 0 success, 1 failure, 2 usage error. set -euo pipefail core_repo=${CORE_REPO:-NVIDIA/OpenShell} sdk_repo=${SDK_REPO:-ai-openshell/sdk-go} +bot_login=${BOT_LOGIN:-ai-openshell-sdk-go[bot]} here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=hack/automation/rpc-issues-lib.sh . "$here/rpc-issues-lib.sh" @@ -43,6 +45,26 @@ usage() { } die() { echo "ERROR: $*" >&2; exit 1; } +# retry : run an idempotent read up to three times, 10 and 20 +# seconds apart. Never wrap a GitHub write: the next run converges instead. +retry() { + local i name=$1 + [ "$name" != _to ] || name=$3 + for i in 1 2 3; do + "$@" && return 0 + [ "$i" -eq 3 ] || { echo "WARNING: '$name' failed (attempt $i of 3), retrying" >&2; sleep $((i * 10)); } + done + return 1 +} +# retry_to : retry with stdout written to file, so a failed +# attempt leaves no partial output behind. +retry_to() { + local out=$1 + shift + retry _to "$out" "$@" +} +_to() { local out=$1; shift; "$@" >"$out"; } + dry=0 max_new=10 tag= @@ -64,7 +86,6 @@ done if [ -n "$plan_input" ]; then [ -f "$plan_input" ] || usage "$plan_input: no such file" else - [ -n "${BOT_LOGIN:-}" ] || usage "BOT_LOGIN must name the bot's login, for example 'ai-openshell-sdk-go[bot]'" [ "$(git rev-parse --show-toplevel)" = "$(pwd -P)" ] || die "run this from the root of the sdk-go clone" fi # --plan-input needs only jq. @@ -78,7 +99,7 @@ work=$(mktemp -d) trap 'rm -rf "$work"' EXIT plan() { # plan [mode] - jq -f "$here/rpc-issues.jq" --rawfile template "$here/rpc-issue-body.md" --arg mode "${2:-plan}" "$1" + jq -L "$here" -f "$here/rpc-issues.jq" --rawfile template "$here/rpc-issue-body.md" --arg mode "${2:-plan}" "$1" } # snake , camel @@ -94,16 +115,26 @@ refs() { [ -z "$list" ] || head -3 <<<"$list" } +# clone_core: a sparse checkout of core's sources at the tag in $work/core. +clone_core() { + rm -rf "$work/core" + git clone --quiet --depth=1 --filter=blob:none --no-checkout --branch "$tag" \ + "https://github.com/$core_repo.git" "$work/core" && + git -C "$work/core" sparse-checkout set crates/openshell-server/src crates/openshell-sdk/src sdk/typescript/src && + git -C "$work/core" checkout --quiet +} + gather() { local out=$1 f n raw_n if [ -z "$tag" ]; then - tag=$("$here/core-tags.sh" --all --pin v0.0.0 | tail -1) || die "cannot list core tags" + retry_to "$work/tags.txt" "$here/core-tags.sh" --all --pin v0.0.0 || die "cannot list core tags" + tag=$(tail -1 "$work/tags.txt") [ -n "$tag" ] || die "core $core_repo has no release tags" fi echo "Core tag: $tag" >&2 # 1. Core's protos at the tag as a descriptor image. - buf build "https://github.com/$core_repo.git#tag=$tag,depth=1" \ + retry buf build "https://github.com/$core_repo.git#tag=$tag,depth=1" \ --config '{"version":"v2","modules":[{"path":"proto"}]}' -o "$work/image.json" || die "buf build of $core_repo at $tag failed" @@ -113,10 +144,11 @@ gather() { echo '{}' >"$work/sources.json" for f in $(jq -r '.file[].name | select(startswith("google/") | not)' "$work/image.json"); do mkdir -p "$work/raw/$(dirname "$f")" - curl -sSf --retry 3 -o "$work/raw/$f" "https://raw.githubusercontent.com/$core_repo/$tag/proto/$f" || + curl -sSf --retry 3 --connect-timeout 20 --max-time 120 -o "$work/raw/$f" "https://raw.githubusercontent.com/$core_repo/$tag/proto/$f" || die "cannot fetch proto/$f at $tag" n=$(jq --arg f "$f" '[.file[] | select(.name == $f) | .service[]?.method[]?] | length' "$work/image.json") - raw_n=$(grep -cE '^[[:space:]]*rpc[[:space:]]+[A-Za-z_]' "$work/raw/$f" || true) + # rpc declarations outside // comments, also several on one line. + raw_n=$(sed 's#//.*##' "$work/raw/$f" | { grep -oE '(^|[;{}[:space:]])rpc[[:space:]]+[A-Za-z_]' || true; } | wc -l | tr -d ' ') [ "$n" = "$raw_n" ] || die "proto/$f at $tag declares $raw_n rpcs, but the buf image has $n" jq --arg f "$f" --rawfile text "$work/raw/$f" '.[$f] = $text' "$work/sources.json" >"$work/sources.tmp" mv "$work/sources.tmp" "$work/sources.json" @@ -129,10 +161,7 @@ gather() { die "openshell.proto at $tag has no annotated methods; the authorization option was not parsed" # 3. Where core mentions each method: server, Rust SDK, TypeScript SDK. - git clone --quiet --depth=1 --filter=blob:none --no-checkout --branch "$tag" \ - "https://github.com/$core_repo.git" "$work/core" || die "cannot clone $core_repo at $tag" - git -C "$work/core" sparse-checkout set crates/openshell-server/src crates/openshell-sdk/src sdk/typescript/src - git -C "$work/core" checkout --quiet || die "cannot check out $core_repo at $tag" + retry clone_core || die "cannot clone $core_repo at $tag" jq -r '.file[] | select(.name | startswith("google/") | not) | .service[]? | .name as $s | .method[] | "\($s).\(.name) \(.name)"' \ "$work/image.json" | sort -u >"$work/methods.txt" local key method sn cm p @@ -198,16 +227,22 @@ gather() { [ -s "$work/built.txt" ] || die "no FullMethodName constants in proto/*/*_grpc.pb.go" yq -r '.plugins[0].opt[] | select(test("^M")) | sub("^M"; "") | sub("=.*"; "")' buf.gen.yaml >"$work/generated.txt" || die "cannot read the M options of buf.gen.yaml" - local branch_refs bump=false - branch_refs=$(gh api "repos/$sdk_repo/git/matching-refs/heads/core/$tag" --jq '.[].ref') || + local bump=false + retry_to "$work/branches.txt" gh api "repos/$sdk_repo/git/matching-refs/heads/core/$tag" --jq '.[].ref' || die "cannot list branches of $sdk_repo" - if grep -qxF "refs/heads/core/$tag" <<<"$branch_refs"; then bump=true; fi + if grep -qxF "refs/heads/core/$tag" "$work/branches.txt"; then bump=true; fi # 6. Exceptions and existing issues. rpc_parse_exceptions "${RPC_EXCEPTIONS:-hack/automation/rpc-exceptions.txt}" >"$work/exceptions.json" || exit 1 - gh issue list -R "$sdk_repo" --label rpc-coverage --state all --limit 500 \ - --json number,state,title,body,labels --jq 'map(.labels |= map(.name))' >"$work/issues.json" || + # The REST issue list, not gh issue list --label (the search index lags + # behind writes). Only issues the bot opened count, so a marker in + # someone else's issue cannot steer the automation. + retry_to "$work/issues.ndjson" gh api --paginate "repos/$sdk_repo/issues?labels=rpc-coverage&state=all&per_page=100" \ + --jq '.[] | select(.pull_request == null) + | {number, state: (.state | ascii_upcase), title, body: (.body // ""), + labels: [.labels[].name], author: .user.login}' || die "cannot list the rpc-coverage issues of $sdk_repo" + jq -s --arg bot "$bot_login" 'map(select(.author == $bot) | del(.author))' "$work/issues.ndjson" >"$work/issues.json" jq -n --arg repo "$sdk_repo" --arg core_repo "$core_repo" --arg tag "$tag" \ --argjson max_new "$max_new" --argjson bump "$bump" \ @@ -225,7 +260,7 @@ gather() { # Fill last_event and last_actor_is_bot for the issues the plan depends on. resolve_actors() { - local in=$1 fetched=" " need n ev last event login + local in=$1 fetched=" " need n last event login while :; do need=$(plan "$in" needs-actors | jq -r '.[]') || die "planning failed" local new= @@ -234,12 +269,13 @@ resolve_actors() { done [ -n "$new" ] || break for n in $new; do - ev=$(gh api --paginate "repos/$sdk_repo/issues/$n/events" \ - --jq '.[] | select(.event == "closed" or .event == "reopened") | "\(.event) \(.actor.login // "")"') || + retry_to "$work/events.txt" gh api --paginate "repos/$sdk_repo/issues/$n/events" \ + --jq '.[] | select(.event == "closed" or .event == "reopened") | "\(.event) \(.actor.login // "")"' || die "cannot read the events of #$n" - last=$(tail -1 <<<"$ev") + last=$(tail -1 "$work/events.txt") event=${last%% *}; login=${last#* } - jq --argjson n "$n" --arg event "$event" --arg login "$login" --arg bot "$BOT_LOGIN" ' + [ -z "$event" ] || echo "#$n: last $event by $login" >&2 + jq --argjson n "$n" --arg event "$event" --arg login "$login" --arg bot "$bot_login" ' .issues |= map(if .number == $n then .last_event = (if $event == "" then null else $event end) | .last_actor_is_bot = (if $event == "" then null else $login == $bot end) @@ -307,7 +343,8 @@ label_desc() { } needed=$(jq -r '[.[] | (.labels // []) + (.add_labels // []) | .[]] | unique | .[]' "$work/plan.json") if [ -n "$needed" ]; then - existing=$(gh label list -R "$sdk_repo" --limit 500 --json name --jq '.[].name') || die "cannot list labels" + retry_to "$work/labels.txt" gh label list -R "$sdk_repo" --limit 500 --json name --jq '.[].name' || die "cannot list labels" + existing=$(cat "$work/labels.txt") while IFS= read -r l; do grep -qxF "$l" <<<"$existing" && continue d=$(label_desc "$l") @@ -337,16 +374,16 @@ for i in $(seq 0 $((n - 1))); do edit_args=("${label_args[@]}") [ ! -s "$work/body.md" ] || edit_args+=(--body-file "$work/body.md") gh issue edit "$num" -R "$sdk_repo" "${edit_args[@]}" >/dev/null - echo "updated #$num" + echo "updated #$num $(jq -r .group "$work/action.json")" ;; close) gh issue close "$num" -R "$sdk_repo" --comment "$(jq -r .comment "$work/action.json")" >/dev/null - echo "closed #$num" + echo "closed #$num $(jq -r .group "$work/action.json")" ;; reopen) gh issue reopen "$num" -R "$sdk_repo" --comment "$(jq -r .comment "$work/action.json")" >/dev/null gh issue edit "$num" -R "$sdk_repo" --body-file "$work/body.md" "${label_args[@]}" >/dev/null - echo "reopened #$num" + echo "reopened #$num $(jq -r .group "$work/action.json")" ;; *) die "unknown action $action" ;; esac diff --git a/hack/automation/rpc-marker.jq b/hack/automation/rpc-marker.jq new file mode 100644 index 0000000..7e20f90 --- /dev/null +++ b/hack/automation/rpc-marker.jq @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# rpc-marker.jq: the hidden marker of RPC coverage issues, shared by +# rpc-issues.jq and update-drift-issue.sh. Load it with +# `jq -L hack/automation 'include "rpc-marker"; ...'`. +# +# Marker on the first body line: +# +# + +def ident: test("^[A-Za-z0-9_]+$"); + +# Parse the marker on the first line of an issue body (a string or null). +# Returns {kind, service, method?, id, first_seen, methods}, or null when the +# first line is not a valid marker. +def parse_marker: + ((. // "") | split("\n") | (.[0] // "") | sub("\r$"; "")) as $line + | [$line | capture("^$")] | .[0] + | if . == null then null else + ([.f | splits(" +") | select(length > 0) | capture("^(?[a-z-]+)=(?.*)$") | {key: .k, value: .v}] + | from_entries) as $kv + | ($kv.service // "") as $s + | (($kv.methods // "") | split(",") | map(select(length > 0 and ident)) | unique) as $ms + | if $kv.kind == "service" and ($s | ident) then + {kind: "service", service: $s, id: ("service:" + $s), first_seen: $kv["first-seen"], methods: $ms} + elif $kv.kind == "method" and ($s | ident) and (($kv.method // "") | ident) then + {kind: "method", service: $s, method: $kv.method, id: ("method:" + $s + "." + $kv.method), + first_seen: $kv["first-seen"], methods: [$kv.method]} + else null end + end; + +def render_marker: + if .kind == "service" then + "" + else + "" + end; diff --git a/hack/automation/testdata/rpc-issues/README.md b/hack/automation/testdata/rpc-issues/README.md index 44d69ab..3bfc78a 100644 --- a/hack/automation/testdata/rpc-issues/README.md +++ b/hack/automation/testdata/rpc-issues/README.md @@ -5,8 +5,11 @@ - `planner//input.json` is a planner input document (see the header of `hack/automation/rpc-issues.jq`), and `expected.json` is the action list (or error object) the planner must return for it. `rpc-issues-test.sh --update` rewrites every `expected.json` from the current planner; review the diff before committing. `backfill-v0.1.9/input.json` was produced by `rpc-issues.sh --tag v0.1.9 --dry-run --dump-input `; the other cases are small hand-written documents. + Where a case has `expected-actors.json`, the planner's `needs-actors` mode must return it; the `actors-unknown-*` cases hold the input as gathered, before `resolve_actors` fills in who closed or reopened an issue. + `rpc-issues-test.sh` also runs `rpc-issues.sh --plan-input` on some cases to check the issue limit and the dry-run output. - `coverage/` is a miniature SDK tree for the coverage helper `hack/automation/rpc-coverage.sh`: `rpc_covered_list coverage keys.txt` must print `expected.txt`. Its Go files sit under `testdata/`, so `go build` ignores them, but `gofmt` and the SPDX check still read them. -- `exceptions/` holds exceptions lists for `rpc_parse_exceptions` in `hack/automation/rpc-issues-lib.sh`: `valid.txt` must parse, `missing-reason.txt` must fail with the line number. +- `exceptions/` holds exceptions lists for `rpc_parse_exceptions` in `hack/automation/rpc-issues-lib.sh`: `valid.txt` must parse to its two entries, `missing-reason.txt` and `bad-key.txt` must fail with the line number. +- `drift-links/` checks `link_uncovered_rpcs` in `hack/automation/drift-issue.sh`: `report.md` with the coverage issues in `issues.json` must become `expected.md`. Every `.json` file has a `.json.license` sidecar for the SPDX check. diff --git a/hack/automation/testdata/rpc-issues/drift-links/expected.md b/hack/automation/testdata/rpc-issues/drift-links/expected.md new file mode 100644 index 0000000..77c7a36 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/drift-links/expected.md @@ -0,0 +1,8 @@ +Pin: v0.1.9 | Core main: 0123abc | Result: pass + +## 3. Uncovered RPCs + +- OpenShell.ForwardTcp ([#7](https://github.com/ai-openshell/sdk-go/issues/7)) +- OpenShell.GetSandboxProviderStatus +- ServiceDiscovery.GetServiceRouteSnapshot ([#42](https://github.com/ai-openshell/sdk-go/issues/42)) +- ServiceDiscovery.WatchServiceRoutes ([#42](https://github.com/ai-openshell/sdk-go/issues/42)) diff --git a/hack/automation/testdata/rpc-issues/drift-links/issues.json b/hack/automation/testdata/rpc-issues/drift-links/issues.json new file mode 100644 index 0000000..c6c4ed9 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/drift-links/issues.json @@ -0,0 +1,8 @@ +[ + {"number": 42, "body": "\n\nbody"}, + {"number": 7, "body": "\r\n\r\nbody"}, + {"number": 9, "body": ""}, + {"number": 11, "body": ""}, + {"number": 12, "body": null}, + {"number": 13, "body": ""} +] diff --git a/hack/automation/testdata/rpc-issues/drift-links/issues.json.license b/hack/automation/testdata/rpc-issues/drift-links/issues.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/drift-links/issues.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/drift-links/report.md b/hack/automation/testdata/rpc-issues/drift-links/report.md new file mode 100644 index 0000000..23ffd59 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/drift-links/report.md @@ -0,0 +1,8 @@ +Pin: v0.1.9 | Core main: 0123abc | Result: pass + +## 3. Uncovered RPCs + +- OpenShell.ForwardTcp +- OpenShell.GetSandboxProviderStatus +- ServiceDiscovery.GetServiceRouteSnapshot +- ServiceDiscovery.WatchServiceRoutes diff --git a/hack/automation/testdata/rpc-issues/exceptions/bad-key.txt b/hack/automation/testdata/rpc-issues/exceptions/bad-key.txt new file mode 100644 index 0000000..0b8e424 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/exceptions/bad-key.txt @@ -0,0 +1,3 @@ +# The key on line 3 is not Service.Method. +OpenShell.ForwardTcp The TCP client already forwards ports over SSH. +OpenShell ExecSandboxInteractive The exec client covers it. diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json new file mode 100644 index 0000000..1575f5a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json @@ -0,0 +1,3 @@ +[ + 20 +] diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json.license b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected-actors.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json new file mode 100644 index 0000000..1cf4bb4 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "CLOSED", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json.license b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-closed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json new file mode 100644 index 0000000..1575f5a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json @@ -0,0 +1,3 @@ +[ + 20 +] diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json.license b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected-actors.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json new file mode 100644 index 0000000..b3a6cf9 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "close", + "comment": "Nothing left to track at core `v0.2.0`:\n\n- `OpenShell.ForwardTcp`: covered, the SDK calls it under `openshell/v1`.\n\nIf this is wrong, reopen the issue; the automation then keeps it open while the SDK covers its methods.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json.license b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json new file mode 100644 index 0000000..a7a62f0 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json @@ -0,0 +1,110 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json.license b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/actors-unknown-reopened/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json new file mode 100644 index 0000000..1575f5a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json @@ -0,0 +1,3 @@ +[ + 20 +] diff --git a/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json.license b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected-actors.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json new file mode 100644 index 0000000..808136e --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json @@ -0,0 +1,24 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `Disc.B`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `Disc.B`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc B(X) returns (Y) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `Disc.B`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Disc.B RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Disc.B: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:Disc.B", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap Disc.B (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `Disc.C`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `Disc.C`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc C(X) returns (Y) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `Disc.C`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Disc.C RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Disc.C: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:Disc.C", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap Disc.C (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json.license b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json new file mode 100644 index 0000000..84a9a89 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json @@ -0,0 +1,216 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "Disc.A", + "Disc.B", + "Disc.C" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp", + "Disc.A" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "number": 20, + "state": "CLOSED", + "title": "t", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "body": "\n\nold body", + "last_actor_is_bot": true, + "last_event": "closed" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "A", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc A(X) returns (Y) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "B", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc B(X) returns (Y) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "C", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "Disc", + "signature": "rpc C(X) returns (Y) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "Disc", + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json.license b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bot-closed-service-bound/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json b/hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json new file mode 100644 index 0000000..c1b5e52 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json @@ -0,0 +1,13 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet, and the bump proposal for core `v0.2.0` (branch `core/v0.2.0`) does not exist yet. core-watch opens it; work on that branch once it exists.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: core/v0.2.0, the core bump proposal for v0.2.0, which core-watch has not opened yet; start once it exists.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json.license b/hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bump-pending/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/bump-pending/input.json b/hack/automation/testdata/rpc-issues/planner/bump-pending/input.json new file mode 100644 index 0000000..b0d7aff --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bump-pending/input.json @@ -0,0 +1,94 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": false, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/bump-pending/input.json.license b/hack/automation/testdata/rpc-issues/planner/bump-pending/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/bump-pending/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/empty-body/expected.json b/hack/automation/testdata/rpc-issues/planner/empty-body/expected.json new file mode 100644 index 0000000..2ed1a1a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/empty-body/expected.json @@ -0,0 +1,13 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/empty-body/expected.json.license b/hack/automation/testdata/rpc-issues/planner/empty-body/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/empty-body/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/empty-body/input.json b/hack/automation/testdata/rpc-issues/planner/empty-body/input.json new file mode 100644 index 0000000..2bb9298 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/empty-body/input.json @@ -0,0 +1,106 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "number": 5, + "state": "OPEN", + "title": "t", + "body": "", + "labels": [ + "rpc-coverage" + ], + "last_actor_is_bot": null, + "last_event": null + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/empty-body/input.json.license b/hack/automation/testdata/rpc-issues/planner/empty-body/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/empty-body/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json b/hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json new file mode 100644 index 0000000..a49176f --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json @@ -0,0 +1,123 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method01`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method01`\n\nMethod01 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method01(Method01Request) returns (Method01Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method01Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method01Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method01`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method01 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method01: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method01", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method01 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method02`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method02`\n\nMethod02 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method02(Method02Request) returns (Method02Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method02Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method02Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method02`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method02 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method02: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method02", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method02 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method03`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method03`\n\nMethod03 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method03(Method03Request) returns (Method03Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method03Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method03Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method03`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method03 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method03: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method03", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method03 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method04`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method04`\n\nMethod04 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method04(Method04Request) returns (Method04Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method04Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method04Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method04`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method04 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method04: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method04", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method04 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method05`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method05`\n\nMethod05 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method05(Method05Request) returns (Method05Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method05Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method05Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method05`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method05 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method05: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method05", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method05 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method06`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method06`\n\nMethod06 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method06(Method06Request) returns (Method06Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method06Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method06Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method06`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method06 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method06: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method06", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method06 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method07`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method07`\n\nMethod07 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method07(Method07Request) returns (Method07Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method07Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method07Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method07`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method07 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method07: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method07", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method07 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method08`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method08`\n\nMethod08 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method08(Method08Request) returns (Method08Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method08Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method08Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method08`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method08 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method08: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method08", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method08 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method09`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method09`\n\nMethod09 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method09(Method09Request) returns (Method09Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method09Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method09Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method09`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method09 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method09: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method09", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method09 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method10`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method10`\n\nMethod10 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method10(Method10Request) returns (Method10Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method10Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method10Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method10`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method10 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method10: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method10", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method10 (core v0.2.0)" + }, + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.Method11`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.Method11`\n\nMethod11 does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Method11(Method11Request) returns (Method11Response) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage Method11Request {\n string name = 1;\n}\n```\n\n```proto\nmessage Method11Response {}\n```\n\n## Where core implements it\n\n### `OpenShell.Method11`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.Method11 RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.Method11: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.Method11", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap OpenShell.Method11 (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json.license b/hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/max-new-raised/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json b/hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json new file mode 100644 index 0000000..08365f7 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json @@ -0,0 +1,434 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 11, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method01 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method01Request", + "source": "message Method01Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method01Response", + "source": "message Method01Response {}" + } + ], + "method": "Method01", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method01Request", + "response": "openshell.v1.Method01Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method01(Method01Request) returns (Method01Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method02 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method02Request", + "source": "message Method02Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method02Response", + "source": "message Method02Response {}" + } + ], + "method": "Method02", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method02Request", + "response": "openshell.v1.Method02Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method02(Method02Request) returns (Method02Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method03 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method03Request", + "source": "message Method03Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method03Response", + "source": "message Method03Response {}" + } + ], + "method": "Method03", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method03Request", + "response": "openshell.v1.Method03Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method03(Method03Request) returns (Method03Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method04 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method04Request", + "source": "message Method04Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method04Response", + "source": "message Method04Response {}" + } + ], + "method": "Method04", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method04Request", + "response": "openshell.v1.Method04Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method04(Method04Request) returns (Method04Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method05 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method05Request", + "source": "message Method05Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method05Response", + "source": "message Method05Response {}" + } + ], + "method": "Method05", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method05Request", + "response": "openshell.v1.Method05Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method05(Method05Request) returns (Method05Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method06 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method06Request", + "source": "message Method06Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method06Response", + "source": "message Method06Response {}" + } + ], + "method": "Method06", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method06Request", + "response": "openshell.v1.Method06Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method06(Method06Request) returns (Method06Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method07 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method07Request", + "source": "message Method07Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method07Response", + "source": "message Method07Response {}" + } + ], + "method": "Method07", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method07Request", + "response": "openshell.v1.Method07Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method07(Method07Request) returns (Method07Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method08 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method08Request", + "source": "message Method08Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method08Response", + "source": "message Method08Response {}" + } + ], + "method": "Method08", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method08Request", + "response": "openshell.v1.Method08Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method08(Method08Request) returns (Method08Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method09 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method09Request", + "source": "message Method09Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method09Response", + "source": "message Method09Response {}" + } + ], + "method": "Method09", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method09Request", + "response": "openshell.v1.Method09Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method09(Method09Request) returns (Method09Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method10 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method10Request", + "source": "message Method10Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method10Response", + "source": "message Method10Response {}" + } + ], + "method": "Method10", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method10Request", + "response": "openshell.v1.Method10Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method10(Method10Request) returns (Method10Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Method11 does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.Method11Request", + "source": "message Method11Request {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.Method11Response", + "source": "message Method11Response {}" + } + ], + "method": "Method11", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.Method11Request", + "response": "openshell.v1.Method11Response", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc Method11(Method11Request) returns (Method11Response) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json.license b/hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/max-new-raised/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/message-changed/expected.json b/hack/automation/testdata/rpc-issues/planner/message-changed/expected.json new file mode 100644 index 0000000..6938319 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/message-changed/expected.json @@ -0,0 +1,8 @@ +[ + { + "action": "update", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string sandbox = 1;\n uint32 port = 2;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "number": 20 + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/message-changed/expected.json.license b/hack/automation/testdata/rpc-issues/planner/message-changed/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/message-changed/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/message-changed/input.json b/hack/automation/testdata/rpc-issues/planner/message-changed/input.json new file mode 100644 index 0000000..d1cf76c --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/message-changed/input.json @@ -0,0 +1,108 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "number": 20, + "state": "OPEN", + "title": "t", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "last_actor_is_bot": null, + "last_event": null + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string sandbox = 1;\n uint32 port = 2;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/message-changed/input.json.license b/hack/automation/testdata/rpc-issues/planner/message-changed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/message-changed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json b/hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json new file mode 100644 index 0000000..1d3f2f1 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json @@ -0,0 +1,13 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has a user-facing method in the `Discovery` service that the Go SDK does not wrap yet: `Watch`. The SDK wraps none of the service's user-facing methods, so this issue tracks the service as a whole. First seen in core `v0.2.0`.\n\n**Blocked on bindings generation**: the SDK does not generate bindings for `proto/discovery.proto` yet. Add the `M` option for the file to both plugins in `buf.gen.yaml` and run `mise run proto:gen` first. If the core tag pinned on `main` does not contain every method listed here yet, do this on the bump branch `core/v0.2.0`, which core-watch opens as the bump proposal for core `v0.2.0`; it does not exist yet.\n\n## `Discovery.Watch`\n\nWatch streams routes. Text from core such as {{BRIEF}} stays as is.\n\n- Streaming: bidirectional streaming\n- Authorization: `dual`, scope `discovery:read`, global role `admin`\n- Definition: [`proto/discovery.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/discovery.proto#L5-L7) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc Watch(stream WatchRequest) returns (stream google.protobuf.Empty) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage WatchRequest {}\n```\n\n`google.protobuf.Empty` (definition not in core's `proto/`, for example a well-known type)\n\n## Where core implements it\n\n### `Discovery.Watch`\n\n- Server (`crates/openshell-server/src`): not found\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the Discovery service of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go): method Watch.\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main if the core tag pinned there (buf.gen.yaml, inputs[0].tag) already declares Watch in proto/discovery.proto, otherwise from core/v0.2.0, the core bump proposal for v0.2.0 (core-watch has not opened it yet). First add the M option for the file to both plugins in buf.gen.yaml and run `mise run proto:gen`.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- Discovery.Watch: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/discovery.proto#L5-L7; core server: not found\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- A sub-client in openshell/v1 for the Discovery service, behind an interface like the other sub-clients, that constructs pb.NewDiscoveryClient(conn) and is reachable from Client.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "service:Discovery", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "title": "feat(sdk): wrap the Discovery service (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json.license b/hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/needs-bindings/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json b/hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json new file mode 100644 index 0000000..6eef443 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json @@ -0,0 +1,124 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": false, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "file": "discovery.proto", + "service": "Discovery", + "method": "Watch", + "auth_mode": "dual", + "scope": "discovery:read", + "workspace_role": null, + "global_role": "admin", + "client_streaming": true, + "server_streaming": true, + "request": "openshell.discovery.v1.WatchRequest", + "response": "google.protobuf.Empty", + "comment": "Watch streams routes. Text from core such as {{BRIEF}} stays as is.", + "signature": "rpc Watch(stream WatchRequest) returns (stream google.protobuf.Empty) {}", + "messages": [ + { + "name": "openshell.discovery.v1.WatchRequest", + "source": "message WatchRequest {}" + }, + { + "name": "google.protobuf.Empty", + "source": "" + } + ], + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/discovery.proto#L5-L7", + "server_refs": [], + "rust_sdk_refs": [], + "ts_sdk_refs": [] + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json.license b/hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/needs-bindings/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json new file mode 100644 index 0000000..1575f5a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json @@ -0,0 +1,3 @@ +[ + 20 +] diff --git a/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json.license b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected-actors.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json new file mode 100644 index 0000000..0fdec38 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json @@ -0,0 +1,15 @@ +[ + { + "action": "reopen", + "add_labels": [ + "rpc:ready" + ], + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "comment": "Reopening: at core `v0.2.0`, `OpenShell.ForwardTcp` is user-facing again and the Go SDK does not wrap it.", + "group": "method:OpenShell.ForwardTcp", + "number": 20, + "remove_labels": [ + "rpc:blocked" + ] + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json.license b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json new file mode 100644 index 0000000..62b3182 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json @@ -0,0 +1,109 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "body": "\n\nold body", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "last_actor_is_bot": true, + "last_event": "closed", + "number": 20, + "state": "CLOSED", + "title": "t" + } + ], + "max_new": 0, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json.license b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/reopen-swaps-label/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json b/hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json @@ -0,0 +1 @@ +[] diff --git a/hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json.license b/hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unchanged-body/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json b/hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json new file mode 100644 index 0000000..fe95d3f --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json @@ -0,0 +1,108 @@ +{ + "built": [ + "OpenShell.GetSandbox" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [ + { + "number": 20, + "state": "OPEN", + "title": "t", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Blocked on the core bump**: the generated bindings on the SDK's `main` do not contain every method listed here yet. Work on the bump branch [`core/v0.2.0`](https://github.com/ai-openshell/sdk-go/tree/core/v0.2.0), or on `main` once that proposal is merged.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: no\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from core/v0.2.0, the core bump proposal for v0.2.0; the bindings on main do not contain the methods yet.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:blocked" + ], + "last_actor_is_bot": null, + "last_event": null + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json.license b/hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/unchanged-body/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/update-drift-issue.sh b/hack/automation/update-drift-issue.sh index c4d99da..1c49a95 100755 --- a/hack/automation/update-drift-issue.sh +++ b/hack/automation/update-drift-issue.sh @@ -29,28 +29,21 @@ done text=$(cat "$report") header=$(head -1 <<<"$text") -# Link each "- Service.Method" line of the report to the open RPC coverage -# issue (rpc-issues.sh) whose marker lists the method; the lowest number wins. -links=$(gh issue list -R "$sdk_repo" --label rpc-coverage --state open --limit 500 --json number,body | - jq -r '.[] | .number as $n - | ((.body // "") | split("\n")[0] | sub("\r$"; "")) as $line - | [$line | capture("^$")] | .[0] // empty - | ([.f | splits(" +") | select(length > 0) | capture("^(?[a-z-]+)=(?.*)$") | {key: .k, value: .v}] - | from_entries) as $kv - | select(($kv.service // "") != "") - | ($kv.methods // "" | split(",")[] | select(length > 0)) - | "\($kv.service).\(.) \($n)"' | sort -k2,2n) || - { echo "ERROR: cannot list the rpc-coverage issues of $sdk_repo" >&2; exit 1; } -if [ -n "$links" ]; then - text=$(awk -v repo="$sdk_repo" ' - FILENAME == ARGV[1] { if (!($1 in issue)) issue[$1] = $2; next } - /^- [A-Za-z0-9_]+\.[A-Za-z0-9_]+$/ && (substr($0, 3) in issue) { - n = issue[substr($0, 3)] - print $0 " ([#" n "](https://github.com/" repo "/issues/" n "))" - next - } - { print }' <(printf '%s\n' "$links") <(printf '%s\n' "$text")) +# Link each "- Service.Method" line of the report to its open RPC coverage +# issue (rpc-issues.sh), counting only issues the bot opened (BOT_LOGIN, +# default "ai-openshell-sdk-go[bot]"). The links are a convenience: when the +# issues cannot be listed, the report goes out without them. +issues_file=$(mktemp) +trap 'rm -f "$issues_file"' EXIT +if gh api --paginate "repos/$sdk_repo/issues?labels=rpc-coverage&state=open&per_page=100" \ + --jq '.[] | select(.pull_request == null) | {number, body, author: .user.login}' | + jq -s --arg bot "${BOT_LOGIN:-ai-openshell-sdk-go[bot]}" 'map(select(.author == $bot))' >"$issues_file" && + linked=$(link_uncovered_rpcs "$issues_file" "$text"); then + text=$linked +else + echo "WARNING: cannot list the rpc-coverage issues of $sdk_repo; uncovered RPCs stay unlinked" >&2 fi + case $header in *"Result: pass"*) result=pass ;; *"Result: fail"*) result=fail ;; From e93773bf919042d34ba0307af3bce3c523b456d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:45:43 +0100 Subject: [PATCH 16/23] docs(automation): describe bot-owned coverage issues and new tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Huß --- hack/automation/README.md | 10 ++++++---- mise.toml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hack/automation/README.md b/hack/automation/README.md index 5ef8487..a031350 100644 --- a/hack/automation/README.md +++ b/hack/automation/README.md @@ -12,13 +12,14 @@ Workflows run them with a token of the `ai-openshell-sdk-go` GitHub App (`ai-ope | `tag-release.sh [--dry-run]` | `release:tag` | After a stable pin lands on `main`: create the lockstep tag `vX.Y.Z` and the GitHub release, then ask the Go module proxy for the version. | | `drift-check.sh --out ` | `core:drift` | Compare core `main` against the pin: `buf breaking`, regenerate and build, uncovered RPCs. Writes the markdown report. | | `update-drift-issue.sh ` | | Create, update, or close the single `Core main drift` issue from a report; uncovered RPCs link to their open RPC coverage issues. | -| `rpc-issues.sh [--dry-run] [--max-new ] [--tag ]` | `core:rpc-issues` | Open, update, close, and reopen one issue per user-facing core RPC (or service) the SDK does not wrap, for the newest core tag. Needs `BOT_LOGIN`; `--plan-input ` plans a saved input document, `--dump-input ` saves one. | +| `rpc-issues.sh [--dry-run] [--max-new ] [--tag ]` | `core:rpc-issues` | Open, update, close, and reopen one issue per user-facing core RPC (or service) the SDK does not wrap, for the newest core tag. `BOT_LOGIN` names the bot (default `ai-openshell-sdk-go[bot]`); `--plan-input ` plans a saved input document, `--dump-input ` saves one. | | `rpc-issues.jq` | | The planner for `rpc-issues.sh`: input document in, actions and rendered bodies out; no network. | +| `rpc-marker.jq` | | The hidden issue marker, parsed by `rpc-issues.jq` and `update-drift-issue.sh` (jq module). | | `rpc-issue-body.md` | | Issue body template for `rpc-issues.jq`. | | `rpc-coverage.sh` | | The coverage rule shared by `rpc-issues.sh` and `drift-check.sh` (sourced, not run). | | `rpc-issues-lib.sh` | | Exceptions list parser (sourced, not run). | | `rpc-exceptions.txt` | | RPCs the SDK deliberately does not wrap, one `Service.Method reason` per line. | -| `rpc-issues-test.sh [--update]` | | Offline planner, coverage, and exceptions tests on `testdata/rpc-issues/`; part of `workflows:check`. | +| `rpc-issues-test.sh [--update]` | | Offline planner, `rpc-issues.sh --plan-input`, coverage, exceptions, and drift link tests on `testdata/rpc-issues/`; part of `workflows:check`. | | `report-failure.sh ` | | Append a dated failure line to the drift issue. Called from `if: failure()` steps. | | `drift-issue.sh` | | Shared helpers for the two drift issue scripts (sourced, not run). | | `start-gateway.sh `, `stop-gateway.sh` | | Run the published gateway container for a core version with the Docker driver and a plaintext endpoint for the E2E lane, and collect its log. | @@ -40,9 +41,10 @@ Workflows run them with a token of the `ai-openshell-sdk-go` GitHub App (`ai-ope - **Coverage**: an RPC is covered when a package under `openshell/v1` (tests and `fake/` excluded) that calls `NewClient(` also calls `.(` (`rpc-coverage.sh`, also used by `drift-check.sh`). - **Grouping**: when the SDK wraps none of a service's user-facing methods, one issue tracks the whole service; otherwise each method gets its own issue. The hidden marker on the first body line (``) is the issue's identity; an issue keeps the methods its marker lists, and new methods of a service join its open service issue. -- **Lifecycle**: each run opens missing issues, rewrites a body or the `rpc:ready` / `rpc:blocked` label when they change, closes an issue with a reason per method (`covered`, `removed`, `excepted`, `not-user-facing`), and reopens an issue it closed itself when the methods apply again. + Only issues the bot opened and that keep the `rpc-coverage` label count; a marker in any other issue is ignored. +- **Lifecycle**: each run opens missing issues, rewrites a body or the `rpc:ready` / `rpc:blocked` label when they change, closes an issue with a reason per method (`covered`, `removed`, `excepted`, `not-user-facing`, or `tracked-elsewhere` when another issue's marker lists the method), and reopens an issue it closed itself when the methods apply again. An issue a maintainer closes stays closed (a closed service issue silences the whole service); an issue a maintainer reopens is never closed as `covered` again. - **Excluding an RPC**: add `Service.Method reason` to `rpc-exceptions.txt`; the next run closes its issue with the reason. - **Limit**: a run that would open more than 10 issues fails before any write and lists them. If they are expected, run core-watch by hand with the input `max_new_issues`, or locally `mise run core:rpc-issues -- --max-new `. -- **Preview**: `BOT_LOGIN='ai-openshell-sdk-go[bot]' mise run core:rpc-issues -- --dry-run` prints every planned action with its body and changes nothing. +- **Preview**: `mise run core:rpc-issues -- --dry-run` prints every planned action with its body and changes nothing (it reads GitHub, so `gh` must be logged in). diff --git a/mise.toml b/mise.toml index c489dab..3e8de14 100644 --- a/mise.toml +++ b/mise.toml @@ -260,5 +260,5 @@ description = "Run the E2E suite against the gateway named in OPENSHELL_GATEWAY run = "go vet -tags=e2e ./e2e/... && go test -tags=e2e -timeout 8m -parallel ${E2E_PARALLEL:-5} ./e2e/..." [tasks."core:rpc-issues"] -description = "Open, update, and close RPC coverage issues (--dry-run, --max-new , --tag )" +description = "Open, update, close, and reopen RPC coverage issues (--dry-run, --max-new , --tag )" run = "hack/automation/rpc-issues.sh" From fe5909cdc099d7b09c81c92ca87bc5a3031d6b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:49:03 +0100 Subject: [PATCH 17/23] fix(automation): apply RPC coverage plans only as the bot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Later runs manage only the coverage issues the bot opened, so a plan applied under a person's gh login would open issues that the next run duplicates. rpc-issues.sh now stops before any write when gh resolves to another user. The bot-author filter moves into rpc_bot_issues, shared by rpc-issues.sh and update-drift-issue.sh and covered by a fixture. Signed-off-by: Roland Huß --- hack/automation/README.md | 1 + hack/automation/rpc-issues-lib.sh | 9 +++++++++ hack/automation/rpc-issues-test.sh | 9 +++++++++ hack/automation/rpc-issues.sh | 9 ++++++++- hack/automation/testdata/rpc-issues/README.md | 1 + .../testdata/rpc-issues/bot-issues/issues.ndjson | 4 ++++ hack/automation/update-drift-issue.sh | 4 +++- 7 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 hack/automation/testdata/rpc-issues/bot-issues/issues.ndjson diff --git a/hack/automation/README.md b/hack/automation/README.md index a031350..0f5c29f 100644 --- a/hack/automation/README.md +++ b/hack/automation/README.md @@ -48,3 +48,4 @@ Workflows run them with a token of the `ai-openshell-sdk-go` GitHub App (`ai-ope - **Limit**: a run that would open more than 10 issues fails before any write and lists them. If they are expected, run core-watch by hand with the input `max_new_issues`, or locally `mise run core:rpc-issues -- --max-new `. - **Preview**: `mise run core:rpc-issues -- --dry-run` prints every planned action with its body and changes nothing (it reads GitHub, so `gh` must be logged in). + Without `--dry-run`, the script applies the plan only under the bot's identity; under a person's `gh` login it stops before any write, because later runs would not manage the issues it opened. diff --git a/hack/automation/rpc-issues-lib.sh b/hack/automation/rpc-issues-lib.sh index 5f19b9f..49205d7 100644 --- a/hack/automation/rpc-issues-lib.sh +++ b/hack/automation/rpc-issues-lib.sh @@ -4,6 +4,15 @@ # rpc-issues.sh and rpc-issues-test.sh; defines functions only. # shellcheck shell=bash +# rpc_bot_issues [file]: the issues in file (or stdin), JSON +# values with an "author" login as `gh api --paginate --jq` prints them, that +# bot-login opened, as one JSON array without the author field. Coverage +# issues are managed only when the bot opened them, so a marker in anyone +# else's issue is ignored. +rpc_bot_issues() { + jq -s --arg bot "${1:?rpc_bot_issues needs the bot login}" 'map(select(.author == $bot) | del(.author))' ${2:+"$2"} +} + # rpc_parse_exceptions : print the entries of an exceptions list # (hack/automation/rpc-exceptions.txt) as a JSON array of {key, reason}. # Lines whose first non-blank character is "#" and blank lines are ignored. diff --git a/hack/automation/rpc-issues-test.sh b/hack/automation/rpc-issues-test.sh index c141272..472ebd6 100755 --- a/hack/automation/rpc-issues-test.sh +++ b/hack/automation/rpc-issues-test.sh @@ -134,6 +134,15 @@ for c in missing-reason:3:has.no.reason bad-key:3:is.not.Service.Method; do fi done +# Only bot-opened issues are managed. +if rpc_bot_issues 'ai-openshell-sdk-go[bot]' "$data/bot-issues/issues.ndjson" >"$work/bot.json" 2>"$work/err" && + jq -e '[.[].number] == [1, 3] and all(.[]; has("author") | not)' "$work/bot.json" >/dev/null && + [ "$(rpc_bot_issues 'ai-openshell-sdk-go[bot]' "$work/linked.md" 2>"$work/err" && diff -u "$data/drift-links/expected.md" "$work/linked.md"; then diff --git a/hack/automation/rpc-issues.sh b/hack/automation/rpc-issues.sh index 378e395..739f03c 100755 --- a/hack/automation/rpc-issues.sh +++ b/hack/automation/rpc-issues.sh @@ -242,7 +242,7 @@ gather() { | {number, state: (.state | ascii_upcase), title, body: (.body // ""), labels: [.labels[].name], author: .user.login}' || die "cannot list the rpc-coverage issues of $sdk_repo" - jq -s --arg bot "$bot_login" 'map(select(.author == $bot) | del(.author))' "$work/issues.ndjson" >"$work/issues.json" + rpc_bot_issues "$bot_login" "$work/issues.ndjson" >"$work/issues.json" jq -n --arg repo "$sdk_repo" --arg core_repo "$core_repo" --arg tag "$tag" \ --argjson max_new "$max_new" --argjson bump "$bump" \ @@ -332,6 +332,13 @@ if [ "$n" -eq 0 ]; then fi echo "Applying: $summary" +# Only the bot applies the plan: later runs manage only the issues it opened, +# so issues opened under another login would be duplicated. An App +# installation token cannot read /user, a person's token can. +if login=$(gh api user --jq .login 2>/dev/null) && [ "$login" != "$bot_login" ]; then + die "gh is logged in as $login, but only $bot_login applies the plan; use --dry-run" +fi + # Create the labels the plan applies and the repository lacks. label_desc() { case $1 in diff --git a/hack/automation/testdata/rpc-issues/README.md b/hack/automation/testdata/rpc-issues/README.md index 3bfc78a..e6cbf79 100644 --- a/hack/automation/testdata/rpc-issues/README.md +++ b/hack/automation/testdata/rpc-issues/README.md @@ -10,6 +10,7 @@ - `coverage/` is a miniature SDK tree for the coverage helper `hack/automation/rpc-coverage.sh`: `rpc_covered_list coverage keys.txt` must print `expected.txt`. Its Go files sit under `testdata/`, so `go build` ignores them, but `gofmt` and the SPDX check still read them. - `exceptions/` holds exceptions lists for `rpc_parse_exceptions` in `hack/automation/rpc-issues-lib.sh`: `valid.txt` must parse to its two entries, `missing-reason.txt` and `bad-key.txt` must fail with the line number. +- `bot-issues/issues.ndjson` checks `rpc_bot_issues`: only the issues `ai-openshell-sdk-go[bot]` opened are kept. - `drift-links/` checks `link_uncovered_rpcs` in `hack/automation/drift-issue.sh`: `report.md` with the coverage issues in `issues.json` must become `expected.md`. Every `.json` file has a `.json.license` sidecar for the SPDX check. diff --git a/hack/automation/testdata/rpc-issues/bot-issues/issues.ndjson b/hack/automation/testdata/rpc-issues/bot-issues/issues.ndjson new file mode 100644 index 0000000..d11c1da --- /dev/null +++ b/hack/automation/testdata/rpc-issues/bot-issues/issues.ndjson @@ -0,0 +1,4 @@ +{"number":1,"state":"OPEN","title":"a","body":"","labels":["rpc-coverage"],"author":"ai-openshell-sdk-go[bot]"} +{"number":2,"state":"OPEN","title":"b","body":"","labels":["rpc-coverage"],"author":"someone"} +{"number":3,"state":"CLOSED","title":"c","body":"","labels":["rpc-coverage"],"author":"ai-openshell-sdk-go[bot]"} +{"number":4,"state":"OPEN","title":"d","body":"x","labels":["rpc-coverage"],"author":"ai-openshell-sdk-go"} diff --git a/hack/automation/update-drift-issue.sh b/hack/automation/update-drift-issue.sh index 1c49a95..61334fe 100755 --- a/hack/automation/update-drift-issue.sh +++ b/hack/automation/update-drift-issue.sh @@ -14,6 +14,8 @@ set -euo pipefail # shellcheck source=hack/automation/drift-issue.sh . "$(dirname "${BASH_SOURCE[0]}")/drift-issue.sh" +# shellcheck source=hack/automation/rpc-issues-lib.sh +. "$(dirname "${BASH_SOURCE[0]}")/rpc-issues-lib.sh" report= dry=0 @@ -37,7 +39,7 @@ issues_file=$(mktemp) trap 'rm -f "$issues_file"' EXIT if gh api --paginate "repos/$sdk_repo/issues?labels=rpc-coverage&state=open&per_page=100" \ --jq '.[] | select(.pull_request == null) | {number, body, author: .user.login}' | - jq -s --arg bot "${BOT_LOGIN:-ai-openshell-sdk-go[bot]}" 'map(select(.author == $bot))' >"$issues_file" && + rpc_bot_issues "${BOT_LOGIN:-ai-openshell-sdk-go[bot]}" >"$issues_file" && linked=$(link_uncovered_rpcs "$issues_file" "$text"); then text=$linked else From d28d8835c8b9eec9eceebe11987e5f840f7d5672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:52:20 +0100 Subject: [PATCH 18/23] fix(automation): ignore comments and strings when counting proto rpcs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The completeness check compared the buf image with a line-based count of rpc declarations, so an rpc mentioned in a /* */ comment or a string, or declared inline after "service Foo {", failed every run for that tag. rpc_count_declarations blanks comments and string literals first and counts every declaration, with a test proto covering those cases. Signed-off-by: Roland Huß --- hack/automation/rpc-issues-lib.sh | 10 +++++++++ hack/automation/rpc-issues-test.sh | 7 ++++++ hack/automation/rpc-issues.sh | 5 ++--- hack/automation/testdata/rpc-issues/README.md | 1 + .../testdata/rpc-issues/protos/count.proto | 22 +++++++++++++++++++ 5 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 hack/automation/testdata/rpc-issues/protos/count.proto diff --git a/hack/automation/rpc-issues-lib.sh b/hack/automation/rpc-issues-lib.sh index 49205d7..7628b78 100644 --- a/hack/automation/rpc-issues-lib.sh +++ b/hack/automation/rpc-issues-lib.sh @@ -13,6 +13,16 @@ rpc_bot_issues() { jq -s --arg bot "${1:?rpc_bot_issues needs the bot login}" 'map(select(.author == $bot) | del(.author))' ${2:+"$2"} } +# rpc_count_declarations : the number of rpc declarations in a +# proto file. Comments (// and /* */) and string literals are blanked first, +# and several declarations on one line all count. +rpc_count_declarations() { + perl -0777 -ne ' + s{"(?:[^"\\\n]|\\.)*"|\x27(?:[^\x27\\\n]|\\.)*\x27|/\*.*?\*/|//[^\n]*}{ }gs; + my $n = () = /(?:^|[;{}\s])rpc\s+[A-Za-z_]/g; + print "$n\n"' "${1:?rpc_count_declarations needs a file}" +} + # rpc_parse_exceptions : print the entries of an exceptions list # (hack/automation/rpc-exceptions.txt) as a JSON array of {key, reason}. # Lines whose first non-blank character is "#" and blank lines are ignored. diff --git a/hack/automation/rpc-issues-test.sh b/hack/automation/rpc-issues-test.sh index 472ebd6..bd552eb 100755 --- a/hack/automation/rpc-issues-test.sh +++ b/hack/automation/rpc-issues-test.sh @@ -134,6 +134,13 @@ for c in missing-reason:3:has.no.reason bad-key:3:is.not.Service.Method; do fi done +# Counting rpc declarations in raw proto sources. +if [ "$(rpc_count_declarations "$data/protos/count.proto" 2>"$work/err")" = 4 ]; then + echo "ok protos/count" +else + fail "protos/count: $(rpc_count_declarations "$data/protos/count.proto" 2>&1)" +fi + # Only bot-opened issues are managed. if rpc_bot_issues 'ai-openshell-sdk-go[bot]' "$data/bot-issues/issues.ndjson" >"$work/bot.json" 2>"$work/err" && jq -e '[.[].number] == [1, 3] and all(.[]; has("author") | not)' "$work/bot.json" >/dev/null && diff --git a/hack/automation/rpc-issues.sh b/hack/automation/rpc-issues.sh index 739f03c..bcce0d6 100755 --- a/hack/automation/rpc-issues.sh +++ b/hack/automation/rpc-issues.sh @@ -90,7 +90,7 @@ else fi # --plan-input needs only jq. tools="jq" -[ -n "$plan_input" ] || tools="jq gh git curl buf yq" +[ -n "$plan_input" ] || tools="jq gh git curl buf yq perl" for tool in $tools; do command -v "$tool" >/dev/null || die "$tool not found (run 'mise install')" done @@ -147,8 +147,7 @@ gather() { curl -sSf --retry 3 --connect-timeout 20 --max-time 120 -o "$work/raw/$f" "https://raw.githubusercontent.com/$core_repo/$tag/proto/$f" || die "cannot fetch proto/$f at $tag" n=$(jq --arg f "$f" '[.file[] | select(.name == $f) | .service[]?.method[]?] | length' "$work/image.json") - # rpc declarations outside // comments, also several on one line. - raw_n=$(sed 's#//.*##' "$work/raw/$f" | { grep -oE '(^|[;{}[:space:]])rpc[[:space:]]+[A-Za-z_]' || true; } | wc -l | tr -d ' ') + raw_n=$(rpc_count_declarations "$work/raw/$f") || die "cannot count the rpcs of proto/$f" [ "$n" = "$raw_n" ] || die "proto/$f at $tag declares $raw_n rpcs, but the buf image has $n" jq --arg f "$f" --rawfile text "$work/raw/$f" '.[$f] = $text' "$work/sources.json" >"$work/sources.tmp" mv "$work/sources.tmp" "$work/sources.json" diff --git a/hack/automation/testdata/rpc-issues/README.md b/hack/automation/testdata/rpc-issues/README.md index e6cbf79..19ca6f2 100644 --- a/hack/automation/testdata/rpc-issues/README.md +++ b/hack/automation/testdata/rpc-issues/README.md @@ -10,6 +10,7 @@ - `coverage/` is a miniature SDK tree for the coverage helper `hack/automation/rpc-coverage.sh`: `rpc_covered_list coverage keys.txt` must print `expected.txt`. Its Go files sit under `testdata/`, so `go build` ignores them, but `gofmt` and the SPDX check still read them. - `exceptions/` holds exceptions lists for `rpc_parse_exceptions` in `hack/automation/rpc-issues-lib.sh`: `valid.txt` must parse to its two entries, `missing-reason.txt` and `bad-key.txt` must fail with the line number. +- `protos/count.proto` checks `rpc_count_declarations`: rpcs in comments and strings do not count, several on one line and one split across lines do. - `bot-issues/issues.ndjson` checks `rpc_bot_issues`: only the issues `ai-openshell-sdk-go[bot]` opened are kept. - `drift-links/` checks `link_uncovered_rpcs` in `hack/automation/drift-issue.sh`: `report.md` with the coverage issues in `issues.json` must become `expected.md`. diff --git a/hack/automation/testdata/rpc-issues/protos/count.proto b/hack/automation/testdata/rpc-issues/protos/count.proto new file mode 100644 index 0000000..b9a0191 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/protos/count.proto @@ -0,0 +1,22 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +// rpc-issues-test.sh: rpc_count_declarations must count 4 here. +syntax = "proto3"; + +/* rpc Legacy(Old) returns (Old); was removed. + rpc AlsoGone(Old) returns (Old); */ +service Foo { rpc Watch (Req) returns (Resp); rpc Get(Req) returns (Resp) {} } + +service Bar { + // rpc Commented(Req) returns (Resp); + rpc Split + (Req) returns (Resp) { + option (x.y) = { url: "http://example.com/rpc Fake(" note: 'it is // not a comment' }; + } + rpc Last(Req) returns (Resp); /* trailing */ +} + +message Req { string rpc = 1; } +message Resp {} +message Old {} From 56e941b4d44b885ffc39a8984b8352155f0acb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:58:10 +0100 Subject: [PATCH 19/23] fix(automation): require the bot identity to apply RPC coverage plans MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A failed /user lookup no longer counts as proof that the bot applies the plan. Applying now needs an explicit BOT_LOGIN, a person's token must resolve to it, and only an App installation token's 403 is accepted without a login; any other lookup failure stops the run before writing. Signed-off-by: Roland Huß --- hack/automation/README.md | 3 +- hack/automation/rpc-issues.sh | 54 +++++++---------------------------- 2 files changed, 13 insertions(+), 44 deletions(-) diff --git a/hack/automation/README.md b/hack/automation/README.md index 0f5c29f..77f3743 100644 --- a/hack/automation/README.md +++ b/hack/automation/README.md @@ -14,6 +14,7 @@ Workflows run them with a token of the `ai-openshell-sdk-go` GitHub App (`ai-ope | `update-drift-issue.sh ` | | Create, update, or close the single `Core main drift` issue from a report; uncovered RPCs link to their open RPC coverage issues. | | `rpc-issues.sh [--dry-run] [--max-new ] [--tag ]` | `core:rpc-issues` | Open, update, close, and reopen one issue per user-facing core RPC (or service) the SDK does not wrap, for the newest core tag. `BOT_LOGIN` names the bot (default `ai-openshell-sdk-go[bot]`); `--plan-input ` plans a saved input document, `--dump-input ` saves one. | | `rpc-issues.jq` | | The planner for `rpc-issues.sh`: input document in, actions and rendered bodies out; no network. | +| `rpc-rows.jq` | | Turns core's buf image and proto sources into the planner's input rows (signatures, comments, messages, links). | | `rpc-marker.jq` | | The hidden issue marker, parsed by `rpc-issues.jq` and `update-drift-issue.sh` (jq module). | | `rpc-issue-body.md` | | Issue body template for `rpc-issues.jq`. | | `rpc-coverage.sh` | | The coverage rule shared by `rpc-issues.sh` and `drift-check.sh` (sourced, not run). | @@ -48,4 +49,4 @@ Workflows run them with a token of the `ai-openshell-sdk-go` GitHub App (`ai-ope - **Limit**: a run that would open more than 10 issues fails before any write and lists them. If they are expected, run core-watch by hand with the input `max_new_issues`, or locally `mise run core:rpc-issues -- --max-new `. - **Preview**: `mise run core:rpc-issues -- --dry-run` prints every planned action with its body and changes nothing (it reads GitHub, so `gh` must be logged in). - Without `--dry-run`, the script applies the plan only under the bot's identity; under a person's `gh` login it stops before any write, because later runs would not manage the issues it opened. + Without `--dry-run`, the script applies the plan only with an explicit `BOT_LOGIN` and the bot's token (core-watch passes both); under a person's `gh` login it stops before any write, because later runs would not manage the issues it opened. diff --git a/hack/automation/rpc-issues.sh b/hack/automation/rpc-issues.sh index bcce0d6..29b5730 100755 --- a/hack/automation/rpc-issues.sh +++ b/hack/automation/rpc-issues.sh @@ -175,45 +175,8 @@ gather() { .[$r[0]][$r[1]] += [{path: $r[2], url: ($base + $r[2])}])' "$work/refs.tsv" >"$work/refs.json" # 4. One row per method of every non-google file. - jq -n --slurpfile img "$work/image.json" --slurpfile src "$work/sources.json" \ - --slurpfile refs "$work/refs.json" --arg core_repo "$core_repo" --arg tag "$tag" ' - def dedent: (map(select(test("\\S")) | match("^ *").length) | min // 0) as $n - | map(if length >= $n then .[$n:] else . end); - def comment: (. // "") | split("\n") | map(sub("^ "; "") | sub("\\s+$"; "")) | join("\n") | sub("^\\s+"; "") | sub("\\s+$"; ""); - def last_line: if length == 4 then .[2] else .[0] end; - $img[0] as $img | $src[0] as $src | $refs[0] as $refs - | ([$img.file[] | .package as $p | .name as $f | (.messageType // []) | to_entries[] - | {key: ("." + (if $p then $p + "." else "" end) + .value.name), value: {file: $f, index: .key}}] - | from_entries) as $msgs - | ([$img.file[] | {key: .name, value: ([.sourceCodeInfo.location[]? - | select((.path | length) == 2 and .path[0] == 4 or ((.path | length) == 4 and .path[0] == 6 and .path[2] == 2)) - | {key: (.path | map(tostring) | join(".")), value: .}] | from_entries)}] | from_entries) as $locs - | def cut($f; $span): ($src[$f] // "" | split("\n"))[$span[0]:($span | last_line) + 1] | dedent | join("\n"); - def message($t): ($t | ltrimstr(".")) as $name - | $msgs[$t] as $m - | if $m == null then {name: $name, source: ""} - else {name: $name, source: (($locs[$m.file][("4." + ($m.index | tostring))].span) as $sp - | if $sp == null then "" else cut($m.file; $sp) end)} end; - [$img.file[] | select(.name | startswith("google/") | not) | .name as $f - | (.service // []) | to_entries[] | .key as $si | .value.name as $s - | .value.method | to_entries[] | .key as $mi | .value as $m - | $locs[$f]["6.\($si).2.\($mi)"] as $loc - | ($m.options["[openshell.options.v1.authorization]"] // {}) as $auth - | { - file: $f, service: $s, method: $m.name, - auth_mode: $auth.authMode, scope: $auth.scope, - workspace_role: $auth.workspaceRole, global_role: $auth.globalRole, - client_streaming: ($m.clientStreaming // false), server_streaming: ($m.serverStreaming // false), - request: ($m.inputType | ltrimstr(".")), response: ($m.outputType | ltrimstr(".")), - comment: ($loc.leadingComments | comment), - signature: (if $loc == null then "" else cut($f; $loc.span) end), - messages: ([$m.inputType, $m.outputType] | unique | map(message(.))), - proto_url: (if $loc == null then "" - else "https://github.com/\($core_repo)/blob/\($tag)/proto/\($f)#L\($loc.span[0] + 1)-L\(($loc.span | last_line) + 1)" end), - server_refs: ($refs["\($s).\($m.name)"].server_refs // []), - rust_sdk_refs: ($refs["\($s).\($m.name)"].rust_sdk_refs // []), - ts_sdk_refs: ($refs["\($s).\($m.name)"].ts_sdk_refs // []) - }]' >"$work/rpcs.json" + jq -n -f "$here/rpc-rows.jq" --slurpfile img "$work/image.json" --slurpfile src "$work/sources.json" \ + --slurpfile refs "$work/refs.json" --arg core_repo "$core_repo" --arg tag "$tag" >"$work/rpcs.json" jq -e 'length > 0 and all(.[]; .signature != "" and .proto_url != "")' "$work/rpcs.json" >/dev/null || die "cannot locate every rpc declaration of $tag in its proto source" @@ -332,10 +295,15 @@ fi echo "Applying: $summary" # Only the bot applies the plan: later runs manage only the issues it opened, -# so issues opened under another login would be duplicated. An App -# installation token cannot read /user, a person's token can. -if login=$(gh api user --jq .login 2>/dev/null) && [ "$login" != "$bot_login" ]; then - die "gh is logged in as $login, but only $bot_login applies the plan; use --dry-run" +# so issues opened under another login would be duplicated. Applying needs +# an explicit BOT_LOGIN (core-watch derives it from the app token it passes +# as GH_TOKEN). A person's token resolves /user, so it must match; an App +# installation token gets 403 there. Any other outcome stops the run. +[ -n "${BOT_LOGIN:-}" ] || die "applying the plan needs BOT_LOGIN, the login of the bot whose token gh uses; use --dry-run to preview" +if login=$(gh api user --jq .login 2>"$work/user.err"); then + [ "$login" = "$bot_login" ] || die "gh is logged in as $login, but only $bot_login applies the plan; use --dry-run" +elif ! grep -q 'HTTP 403' "$work/user.err"; then + die "cannot tell which account gh uses: $(cat "$work/user.err")" fi # Create the labels the plan applies and the repository lacks. From 1654704e11573eab1a662448c64863e951d65aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 19:58:10 +0100 Subject: [PATCH 20/23] test(automation): test the input rows built from core's buf image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the jq that turns the buf image and proto sources into input rows from rpc-issues.sh into rpc-rows.jq, unchanged, and test it on a hand-written image covering multi-line and one-line spans, comments, a well-known message type, and the skipped google file. Signed-off-by: Roland Huß --- hack/automation/rpc-issues-test.sh | 10 ++ hack/automation/rpc-rows.jq | 52 +++++++ hack/automation/testdata/rpc-issues/README.md | 1 + .../testdata/rpc-issues/rows/expected.json | 94 +++++++++++++ .../rpc-issues/rows/expected.json.license | 2 + .../testdata/rpc-issues/rows/image.json | 129 ++++++++++++++++++ .../rpc-issues/rows/image.json.license | 2 + .../testdata/rpc-issues/rows/refs.json | 10 ++ .../rpc-issues/rows/refs.json.license | 2 + .../testdata/rpc-issues/rows/sources.json | 3 + .../rpc-issues/rows/sources.json.license | 2 + 11 files changed, 307 insertions(+) create mode 100644 hack/automation/rpc-rows.jq create mode 100644 hack/automation/testdata/rpc-issues/rows/expected.json create mode 100644 hack/automation/testdata/rpc-issues/rows/expected.json.license create mode 100644 hack/automation/testdata/rpc-issues/rows/image.json create mode 100644 hack/automation/testdata/rpc-issues/rows/image.json.license create mode 100644 hack/automation/testdata/rpc-issues/rows/refs.json create mode 100644 hack/automation/testdata/rpc-issues/rows/refs.json.license create mode 100644 hack/automation/testdata/rpc-issues/rows/sources.json create mode 100644 hack/automation/testdata/rpc-issues/rows/sources.json.license diff --git a/hack/automation/rpc-issues-test.sh b/hack/automation/rpc-issues-test.sh index bd552eb..8ff1f5b 100755 --- a/hack/automation/rpc-issues-test.sh +++ b/hack/automation/rpc-issues-test.sh @@ -134,6 +134,16 @@ for c in missing-reason:3:has.no.reason bad-key:3:is.not.Service.Method; do fi done +# Input rows from a buf image and its proto sources. +r=$data/rows +if jq -n -f "$here/rpc-rows.jq" --slurpfile img "$r/image.json" --slurpfile src "$r/sources.json" \ + --slurpfile refs "$r/refs.json" --arg core_repo NVIDIA/OpenShell --arg tag v0.3.0 >"$work/rows.json" 2>"$work/err" && + diff -u <(jq -S . "$r/expected.json") <(jq -S . "$work/rows.json"); then + echo "ok rows" +else + fail "rows $(cat "$work/err")" +fi + # Counting rpc declarations in raw proto sources. if [ "$(rpc_count_declarations "$data/protos/count.proto" 2>"$work/err")" = 4 ]; then echo "ok protos/count" diff --git a/hack/automation/rpc-rows.jq b/hack/automation/rpc-rows.jq new file mode 100644 index 0000000..96460bc --- /dev/null +++ b/hack/automation/rpc-rows.jq @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# rpc-rows.jq: one input row per method of every non-google proto file, from +# core's buf image at a tag. Used by rpc-issues.sh (gather, step 4); tested by +# rpc-issues-test.sh on testdata/rpc-issues/rows/. +# +# jq -n -f rpc-rows.jq --slurpfile img image.json --slurpfile src sources.json \ +# --slurpfile refs refs.json --arg core_repo NVIDIA/OpenShell --arg tag vX.Y.Z +# +# image.json: the buf image (`buf build -o image.json`) with source info; +# sources.json: {"": ""}; refs.json: +# {"": {server_refs, rust_sdk_refs, ts_sdk_refs}}. +# Signatures and messages are cut from the source text by the spans of the +# image's sourceCodeInfo; spans have 4 elements, or 3 for a single line. + +def dedent: (map(select(test("\\S")) | match("^ *").length) | min // 0) as $n + | map(if length >= $n then .[$n:] else . end); +def comment: (. // "") | split("\n") | map(sub("^ "; "") | sub("\\s+$"; "")) | join("\n") | sub("^\\s+"; "") | sub("\\s+$"; ""); +def last_line: if length == 4 then .[2] else .[0] end; +$img[0] as $img | $src[0] as $src | $refs[0] as $refs +| ([$img.file[] | .package as $p | .name as $f | (.messageType // []) | to_entries[] + | {key: ("." + (if $p then $p + "." else "" end) + .value.name), value: {file: $f, index: .key}}] + | from_entries) as $msgs +| ([$img.file[] | {key: .name, value: ([.sourceCodeInfo.location[]? + | select((.path | length) == 2 and .path[0] == 4 or ((.path | length) == 4 and .path[0] == 6 and .path[2] == 2)) + | {key: (.path | map(tostring) | join(".")), value: .}] | from_entries)}] | from_entries) as $locs +| def cut($f; $span): ($src[$f] // "" | split("\n"))[$span[0]:($span | last_line) + 1] | dedent | join("\n"); +def message($t): ($t | ltrimstr(".")) as $name + | $msgs[$t] as $m + | if $m == null then {name: $name, source: ""} + else {name: $name, source: (($locs[$m.file][("4." + ($m.index | tostring))].span) as $sp + | if $sp == null then "" else cut($m.file; $sp) end)} end; +[$img.file[] | select(.name | startswith("google/") | not) | .name as $f + | (.service // []) | to_entries[] | .key as $si | .value.name as $s + | .value.method | to_entries[] | .key as $mi | .value as $m + | $locs[$f]["6.\($si).2.\($mi)"] as $loc + | ($m.options["[openshell.options.v1.authorization]"] // {}) as $auth + | { + file: $f, service: $s, method: $m.name, + auth_mode: $auth.authMode, scope: $auth.scope, + workspace_role: $auth.workspaceRole, global_role: $auth.globalRole, + client_streaming: ($m.clientStreaming // false), server_streaming: ($m.serverStreaming // false), + request: ($m.inputType | ltrimstr(".")), response: ($m.outputType | ltrimstr(".")), + comment: ($loc.leadingComments | comment), + signature: (if $loc == null then "" else cut($f; $loc.span) end), + messages: ([$m.inputType, $m.outputType] | unique | map(message(.))), + proto_url: (if $loc == null then "" + else "https://github.com/\($core_repo)/blob/\($tag)/proto/\($f)#L\($loc.span[0] + 1)-L\(($loc.span | last_line) + 1)" end), + server_refs: ($refs["\($s).\($m.name)"].server_refs // []), + rust_sdk_refs: ($refs["\($s).\($m.name)"].rust_sdk_refs // []), + ts_sdk_refs: ($refs["\($s).\($m.name)"].ts_sdk_refs // []) + }] diff --git a/hack/automation/testdata/rpc-issues/README.md b/hack/automation/testdata/rpc-issues/README.md index 19ca6f2..f8e9f14 100644 --- a/hack/automation/testdata/rpc-issues/README.md +++ b/hack/automation/testdata/rpc-issues/README.md @@ -10,6 +10,7 @@ - `coverage/` is a miniature SDK tree for the coverage helper `hack/automation/rpc-coverage.sh`: `rpc_covered_list coverage keys.txt` must print `expected.txt`. Its Go files sit under `testdata/`, so `go build` ignores them, but `gofmt` and the SPDX check still read them. - `exceptions/` holds exceptions lists for `rpc_parse_exceptions` in `hack/automation/rpc-issues-lib.sh`: `valid.txt` must parse to its two entries, `missing-reason.txt` and `bad-key.txt` must fail with the line number. +- `rows/` checks `hack/automation/rpc-rows.jq`: a hand-written buf image (`image.json`) with the proto source of `a.proto` (`sources.json`) and source references (`refs.json`) must give the input rows in `expected.json`; it covers multi-line and one-line spans, comments, a well-known message type, and the google file being skipped. - `protos/count.proto` checks `rpc_count_declarations`: rpcs in comments and strings do not count, several on one line and one split across lines do. - `bot-issues/issues.ndjson` checks `rpc_bot_issues`: only the issues `ai-openshell-sdk-go[bot]` opened are kept. - `drift-links/` checks `link_uncovered_rpcs` in `hack/automation/drift-issue.sh`: `report.md` with the coverage issues in `issues.json` must become `expected.md`. diff --git a/hack/automation/testdata/rpc-issues/rows/expected.json b/hack/automation/testdata/rpc-issues/rows/expected.json new file mode 100644 index 0000000..946c232 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/expected.json @@ -0,0 +1,94 @@ +[ + { + "file": "a.proto", + "service": "Svc", + "method": "Get", + "auth_mode": "bearer", + "scope": "s:read", + "workspace_role": "user", + "global_role": null, + "client_streaming": false, + "server_streaming": false, + "request": "pkg.Req", + "response": "pkg.Resp", + "comment": "Get returns one thing.\n Indented detail stays indented.", + "signature": "rpc Get(Req) returns (Resp) {\n option (openshell.options.v1.authorization) = {auth_mode: \"bearer\" scope: \"s:read\" workspace_role: \"user\"};\n}", + "messages": [ + { + "name": "pkg.Req", + "source": "message Req {\n string name = 1;\n}" + }, + { + "name": "pkg.Resp", + "source": "message Resp {}" + } + ], + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.3.0/proto/a.proto#L8-L10", + "server_refs": [ + { + "path": "crates/openshell-server/src/svc.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.3.0/crates/openshell-server/src/svc.rs" + } + ], + "rust_sdk_refs": [], + "ts_sdk_refs": [] + }, + { + "file": "a.proto", + "service": "Svc", + "method": "Ping", + "auth_mode": "dual", + "scope": null, + "workspace_role": null, + "global_role": "admin", + "client_streaming": true, + "server_streaming": false, + "request": "pkg.Req", + "response": "google.protobuf.Empty", + "comment": "", + "signature": "rpc Ping(stream Req) returns (google.protobuf.Empty);", + "messages": [ + { + "name": "google.protobuf.Empty", + "source": "" + }, + { + "name": "pkg.Req", + "source": "message Req {\n string name = 1;\n}" + } + ], + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.3.0/proto/a.proto#L11-L11", + "server_refs": [], + "rust_sdk_refs": [], + "ts_sdk_refs": [] + }, + { + "file": "a.proto", + "service": "Svc", + "method": "Bare", + "auth_mode": null, + "scope": null, + "workspace_role": null, + "global_role": null, + "client_streaming": false, + "server_streaming": false, + "request": "pkg.Req", + "response": "pkg.Resp", + "comment": "", + "signature": "rpc Bare(Req) returns (Resp);", + "messages": [ + { + "name": "pkg.Req", + "source": "message Req {\n string name = 1;\n}" + }, + { + "name": "pkg.Resp", + "source": "message Resp {}" + } + ], + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.3.0/proto/a.proto#L12-L12", + "server_refs": [], + "rust_sdk_refs": [], + "ts_sdk_refs": [] + } +] diff --git a/hack/automation/testdata/rpc-issues/rows/expected.json.license b/hack/automation/testdata/rpc-issues/rows/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/rows/image.json b/hack/automation/testdata/rpc-issues/rows/image.json new file mode 100644 index 0000000..525b39a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/image.json @@ -0,0 +1,129 @@ +{ + "file": [ + { + "name": "google/protobuf/empty.proto", + "package": "google.protobuf", + "messageType": [ + { + "name": "Empty" + } + ] + }, + { + "name": "a.proto", + "package": "pkg", + "messageType": [ + { + "name": "Req" + }, + { + "name": "Resp" + } + ], + "service": [ + { + "name": "Svc", + "method": [ + { + "name": "Get", + "inputType": ".pkg.Req", + "outputType": ".pkg.Resp", + "options": { + "[openshell.options.v1.authorization]": { + "authMode": "bearer", + "scope": "s:read", + "workspaceRole": "user" + } + } + }, + { + "name": "Ping", + "inputType": ".pkg.Req", + "outputType": ".google.protobuf.Empty", + "clientStreaming": true, + "options": { + "[openshell.options.v1.authorization]": { + "authMode": "dual", + "globalRole": "admin" + } + } + }, + { + "name": "Bare", + "inputType": ".pkg.Req", + "outputType": ".pkg.Resp" + } + ] + } + ], + "sourceCodeInfo": { + "location": [ + { + "path": [ + 6, + 0, + 2, + 0 + ], + "span": [ + 7, + 2, + 9, + 3 + ], + "leadingComments": " Get returns one thing.\n Indented detail stays indented.\n" + }, + { + "path": [ + 6, + 0, + 2, + 1 + ], + "span": [ + 10, + 2, + 55 + ] + }, + { + "path": [ + 6, + 0, + 2, + 2 + ], + "span": [ + 11, + 2, + 31 + ] + }, + { + "path": [ + 4, + 0 + ], + "span": [ + 14, + 0, + 16, + 1 + ] + }, + { + "path": [ + 4, + 1 + ], + "span": [ + 17, + 0, + 15 + ] + } + ] + } + } + ] +} diff --git a/hack/automation/testdata/rpc-issues/rows/image.json.license b/hack/automation/testdata/rpc-issues/rows/image.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/image.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/rows/refs.json b/hack/automation/testdata/rpc-issues/rows/refs.json new file mode 100644 index 0000000..93f6adf --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/refs.json @@ -0,0 +1,10 @@ +{ + "Svc.Get": { + "server_refs": [ + { + "path": "crates/openshell-server/src/svc.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.3.0/crates/openshell-server/src/svc.rs" + } + ] + } +} diff --git a/hack/automation/testdata/rpc-issues/rows/refs.json.license b/hack/automation/testdata/rpc-issues/rows/refs.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/refs.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/rows/sources.json b/hack/automation/testdata/rpc-issues/rows/sources.json new file mode 100644 index 0000000..c43756a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/sources.json @@ -0,0 +1,3 @@ +{ + "a.proto": "syntax = \"proto3\";\npackage pkg;\n\n// Svc does things.\nservice Svc {\n // Get returns one thing.\n // Indented detail stays indented.\n rpc Get(Req) returns (Resp) {\n option (openshell.options.v1.authorization) = {auth_mode: \"bearer\" scope: \"s:read\" workspace_role: \"user\"};\n }\n rpc Ping(stream Req) returns (google.protobuf.Empty);\n rpc Bare(Req) returns (Resp);\n}\n\nmessage Req {\n string name = 1;\n}\nmessage Resp {}\n" +} diff --git a/hack/automation/testdata/rpc-issues/rows/sources.json.license b/hack/automation/testdata/rpc-issues/rows/sources.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/rows/sources.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 From 22c49b643a97087019b008fe7d82feec3ff232dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 18 Nov 2026 20:02:33 +0100 Subject: [PATCH 21/23] fix(automation): accept proto services without methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Huß --- hack/automation/rpc-rows.jq | 2 +- hack/automation/testdata/rpc-issues/rows/image.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/automation/rpc-rows.jq b/hack/automation/rpc-rows.jq index 96460bc..0f3557a 100644 --- a/hack/automation/rpc-rows.jq +++ b/hack/automation/rpc-rows.jq @@ -32,7 +32,7 @@ def message($t): ($t | ltrimstr(".")) as $name | if $sp == null then "" else cut($m.file; $sp) end)} end; [$img.file[] | select(.name | startswith("google/") | not) | .name as $f | (.service // []) | to_entries[] | .key as $si | .value.name as $s - | .value.method | to_entries[] | .key as $mi | .value as $m + | (.value.method // []) | to_entries[] | .key as $mi | .value as $m | $locs[$f]["6.\($si).2.\($mi)"] as $loc | ($m.options["[openshell.options.v1.authorization]"] // {}) as $auth | { diff --git a/hack/automation/testdata/rpc-issues/rows/image.json b/hack/automation/testdata/rpc-issues/rows/image.json index 525b39a..6dc41ef 100644 --- a/hack/automation/testdata/rpc-issues/rows/image.json +++ b/hack/automation/testdata/rpc-issues/rows/image.json @@ -54,6 +54,9 @@ "outputType": ".pkg.Resp" } ] + }, + { + "name": "Empty" } ], "sourceCodeInfo": { From d4e211c6d36ec935e2973a3a5c5164b4d9fd9296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Thu, 19 Nov 2026 12:09:46 +0100 Subject: [PATCH 22/23] fix(automation): harden RPC coverage issues and failure reporting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three follow-ups from the review of the RPC coverage automation: - Text from core's proto comments is defused before it goes into an issue body: a zero-width space after @ and before a digit after # keeps GitHub from mentioning people or linking issues of this repository, and one inside `) is the issue's identity; an issue keeps the methods its marker lists, and new methods of a service join its open service issue. - Only issues the bot opened and that keep the `rpc-coverage` label count; a marker in any other issue is ignored. + Only issues the bot opened count, found by creator and marker rather than by label: a marker in any other issue is ignored, and an issue whose `rpc-coverage` label someone removed gets the label back instead of a duplicate. + Text from core's proto comments is defused before it goes into a body (`@name`, `#123`, and `\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.1.9`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwardTcp does something useful.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n```proto\nmessage ForwardTcpRequest {\n string name = 1;\n}\n```\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "labels": [], + "last_actor_is_bot": null, + "last_event": null, + "number": 20, + "state": "OPEN", + "title": "t" + } + ], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "ForwardTcp does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/label-removed/input.json.license b/hack/automation/testdata/rpc-issues/planner/label-removed/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/label-removed/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/untrusted-text/expected.json b/hack/automation/testdata/rpc-issues/planner/untrusted-text/expected.json new file mode 100644 index 0000000..0c97e0a --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/untrusted-text/expected.json @@ -0,0 +1,13 @@ +[ + { + "action": "open", + "body": "\n\nCore `v0.2.0` has `OpenShell.ForwardTcp`, a user-facing RPC that the Go SDK does not wrap yet. First seen in core `v0.2.0`.\n\n**Buildable on `main`**: the generated bindings on the SDK's `main` already contain every method listed here.\n\n## `OpenShell.ForwardTcp`\n\nForwards a port. Ask @​octocat, see #​123 and owner/repo#​45.\n<​!-- hidden part -->Still visible.\n\n- Streaming: unary\n- Authorization: `bearer`, scope `sandbox:read`, workspace role `user`\n- Definition: [`proto/openshell.proto`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12) at core `v0.2.0`\n- Generated bindings on the SDK's `main`: yes\n\n```proto\nrpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}\n```\n\nRequest and response messages:\n\n````proto\nmessage ForwardTcpRequest {\n // Format: ```host:port```\n string name = 1;\n}\n````\n\n```proto\nmessage ForwardTcpResponse {}\n```\n\n## Where core implements it\n\n### `OpenShell.ForwardTcp`\n\n- Server (`crates/openshell-server/src`): [`crates/openshell-server/src/grpc/mod.rs`](https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs)\n- Rust SDK (`crates/openshell-sdk/src`): not found\n- TypeScript SDK (`sdk/typescript/src`): not found\n\n## Implementation brief\n\nCopy this block as the task description when you start the work.\n\n````text\nWrap the OpenShell.ForwardTcp RPC of OpenShell core in the OpenShell Go SDK (https://github.com/ai-openshell/sdk-go).\n\nCore version: NVIDIA/OpenShell at tag v0.2.0.\nBranch: start from main; its generated bindings already contain the methods.\n\nRead first:\n- AGENTS.md and CONTRIBUTING.md in the SDK repository: conventions, commands, and commit rules.\n- OpenShell.ForwardTcp: proto definition https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12; core server: https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs\n- The pattern to follow: the sub-client in openshell/v1/service_client.go, its types in openshell/v1/types/service.go, its converter in openshell/v1/internal/converter/service.go, and its fake in openshell/v1/fake/service.go.\n\nDeliverables:\n- The method in openshell/v1, on the sub-client that fits it, behind its interface like the other sub-client methods.\n- Domain types in openshell/v1/types/ without proto imports.\n- Converters in openshell/v1/internal/converter/ that deep-copy slices and maps.\n- The fake implementation in openshell/v1/fake/.\n- Unit tests with bufconn and testify.\n- Documentation: a page under docs/src/api/ (like docs/src/api/services.md) with its entry in docs/src/SUMMARY.md, or an update of the existing page.\n\nDone when `mise run ci` passes. Use Conventional Commits and sign off every commit.\n````\n\n## About this issue\n\nThe RPC coverage automation (`hack/automation/rpc-issues.sh`, run by the hourly core-watch workflow) opened this issue and keeps it in sync with the newest core release tag.\nIt rewrites this description when the definition or the buildability changes, and closes the issue when the SDK covers every method listed here under `openshell/v1`, when core removes them or makes them internal, or when they are listed with a reason in [`hack/automation/rpc-exceptions.txt`](https://github.com/ai-openshell/sdk-go/blob/main/hack/automation/rpc-exceptions.txt).\nAn issue closed by hand stays closed. Reopen it by hand to keep it open while the automation considers the methods covered.", + "group": "method:OpenShell.ForwardTcp", + "labels": [ + "help wanted", + "rpc-coverage", + "rpc:ready" + ], + "title": "feat(sdk): wrap OpenShell.ForwardTcp (core v0.2.0)" + } +] diff --git a/hack/automation/testdata/rpc-issues/planner/untrusted-text/expected.json.license b/hack/automation/testdata/rpc-issues/planner/untrusted-text/expected.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/untrusted-text/expected.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/testdata/rpc-issues/planner/untrusted-text/input.json b/hack/automation/testdata/rpc-issues/planner/untrusted-text/input.json new file mode 100644 index 0000000..e0f1734 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/untrusted-text/input.json @@ -0,0 +1,95 @@ +{ + "built": [ + "OpenShell.GetSandbox", + "OpenShell.ForwardTcp" + ], + "bump_branch_exists": true, + "core_repo": "NVIDIA/OpenShell", + "covered": [ + "OpenShell.GetSandbox" + ], + "exceptions": [], + "generated_files": [ + "openshell.proto", + "datamodel.proto", + "sandbox.proto", + "options.proto" + ], + "issues": [], + "max_new": 10, + "repo": "ai-openshell/sdk-go", + "rpcs": [ + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "GetSandbox does something useful.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.GetSandboxRequest", + "source": "message GetSandboxRequest {\n string name = 1;\n}" + }, + { + "name": "openshell.v1.GetSandboxResponse", + "source": "message GetSandboxResponse {}" + } + ], + "method": "GetSandbox", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.GetSandboxRequest", + "response": "openshell.v1.GetSandboxResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc GetSandbox(GetSandboxRequest) returns (GetSandboxResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + }, + { + "auth_mode": "bearer", + "client_streaming": false, + "comment": "Forwards a port. Ask @octocat, see #123 and owner/repo#45.\nStill visible.", + "file": "openshell.proto", + "global_role": null, + "messages": [ + { + "name": "openshell.v1.ForwardTcpRequest", + "source": "message ForwardTcpRequest {\n // Format: ```host:port```\n string name = 1;\n}" + }, + { + "name": "openshell.v1.ForwardTcpResponse", + "source": "message ForwardTcpResponse {}" + } + ], + "method": "ForwardTcp", + "proto_url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/proto/openshell.proto#L10-L12", + "request": "openshell.v1.ForwardTcpRequest", + "response": "openshell.v1.ForwardTcpResponse", + "rust_sdk_refs": [], + "scope": "sandbox:read", + "server_refs": [ + { + "path": "crates/openshell-server/src/grpc/mod.rs", + "url": "https://github.com/NVIDIA/OpenShell/blob/v0.2.0/crates/openshell-server/src/grpc/mod.rs" + } + ], + "server_streaming": false, + "service": "OpenShell", + "signature": "rpc ForwardTcp(ForwardTcpRequest) returns (ForwardTcpResponse) {}", + "ts_sdk_refs": [], + "workspace_role": "user" + } + ], + "services_bound": [ + "OpenShell" + ], + "tag": "v0.2.0" +} diff --git a/hack/automation/testdata/rpc-issues/planner/untrusted-text/input.json.license b/hack/automation/testdata/rpc-issues/planner/untrusted-text/input.json.license new file mode 100644 index 0000000..2137e95 --- /dev/null +++ b/hack/automation/testdata/rpc-issues/planner/untrusted-text/input.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: Apache-2.0 diff --git a/hack/automation/update-drift-issue.sh b/hack/automation/update-drift-issue.sh index 61334fe..621ba32 100755 --- a/hack/automation/update-drift-issue.sh +++ b/hack/automation/update-drift-issue.sh @@ -37,7 +37,7 @@ header=$(head -1 <<<"$text") # issues cannot be listed, the report goes out without them. issues_file=$(mktemp) trap 'rm -f "$issues_file"' EXIT -if gh api --paginate "repos/$sdk_repo/issues?labels=rpc-coverage&state=open&per_page=100" \ +if gh api --paginate "$(rpc_bot_issues_url "$sdk_repo" "${BOT_LOGIN:-ai-openshell-sdk-go[bot]}" open)" \ --jq '.[] | select(.pull_request == null) | {number, body, author: .user.login}' | rpc_bot_issues "${BOT_LOGIN:-ai-openshell-sdk-go[bot]}" >"$issues_file" && linked=$(link_uncovered_rpcs "$issues_file" "$text"); then From 9e0ab37e3b7b3958c2e10360a0a443eca90a7345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Fri, 20 Nov 2026 08:00:12 +0100 Subject: [PATCH 23/23] fix(automation): count RPCs passed as method values as covered MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The coverage scan only matched calls (".Method("), so the bidi stream wrappers that hand the RPC to openBidiRouted as a method value (e.client.ExecSandboxInteractive, t.client.ForwardTcp) never counted. The v0.1.9 dry run planned issues for ExecSandboxInteractive and ForwardTcp although the SDK wraps both. A method name followed by ")" or "," now counts as well, in a package that binds the service. Across all 87 core methods this adds exactly those two. The coverage fixture gets a package that passes two methods as values to a routing helper. Signed-off-by: Roland Huß --- hack/automation/rpc-coverage.sh | 10 ++++++---- .../testdata/rpc-issues/coverage/expected.txt | 2 ++ .../automation/testdata/rpc-issues/coverage/keys.txt | 2 ++ .../testdata/rpc-issues/coverage/openshell/v1/d/d.go | 12 ++++++++++++ 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 hack/automation/testdata/rpc-issues/coverage/openshell/v1/d/d.go diff --git a/hack/automation/rpc-coverage.sh b/hack/automation/rpc-coverage.sh index b68db89..5231b8c 100644 --- a/hack/automation/rpc-coverage.sh +++ b/hack/automation/rpc-coverage.sh @@ -7,8 +7,10 @@ # Only non-test Go files under /openshell/v1 outside fake/ count. # A package directory binds service S when one of its files calls # NewClient( (the generated constructor). Method M of S is covered when a -# file in a package that binds S contains ".M(". Methods with the same name -# in different services are told apart by the binding. +# file in a package that binds S calls it (".M(") or passes it as a method +# value (".M)" or ".M,"), as the bidi stream wrappers do with +# openBidiRouted(ctx, owner, start, e.client.ExecSandboxInteractive). Methods +# with the same name in different services are told apart by the binding. # shellcheck shell=bash # _rpc_go_files : NUL-separated SDK Go files that count. @@ -49,10 +51,10 @@ rpc_covered_list() { [ -f "$keys" ] || { echo "ERROR: $keys: no such file" >&2; return 1; } b=$(_rpc_bindings "$root") || return 1 calls=$(_rpc_go_files "$root" | - xargs -0 grep -HoE '\.[A-Za-z0-9_]+\(' /dev/null | + xargs -0 grep -HoE '\.[A-Za-z0-9_]+[(),]' /dev/null | awk '{ i = index($0, ":"); path = substr($0, 1, i - 1); m = substr($0, i + 2) - sub(/\($/, "", m) + sub(/[(),]$/, "", m) dir = path; sub(/\/[^\/]*$/, "", dir) print dir, m }' | sort -u) || true diff --git a/hack/automation/testdata/rpc-issues/coverage/expected.txt b/hack/automation/testdata/rpc-issues/coverage/expected.txt index 3664a1d..992648a 100644 --- a/hack/automation/testdata/rpc-issues/coverage/expected.txt +++ b/hack/automation/testdata/rpc-issues/coverage/expected.txt @@ -1,2 +1,4 @@ OpenShell.Watch NewsFeed.Get +OpenShell.Exec +OpenShell.Forward diff --git a/hack/automation/testdata/rpc-issues/coverage/keys.txt b/hack/automation/testdata/rpc-issues/coverage/keys.txt index 222f378..46c6c6a 100644 --- a/hack/automation/testdata/rpc-issues/coverage/keys.txt +++ b/hack/automation/testdata/rpc-issues/coverage/keys.txt @@ -3,3 +3,5 @@ OpenShell.Snapshot ServiceDiscovery.Watch OpenShell.Hidden NewsFeed.Get +OpenShell.Exec +OpenShell.Forward diff --git a/hack/automation/testdata/rpc-issues/coverage/openshell/v1/d/d.go b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/d/d.go new file mode 100644 index 0000000..786bf5c --- /dev/null +++ b/hack/automation/testdata/rpc-issues/coverage/openshell/v1/d/d.go @@ -0,0 +1,12 @@ +// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +// Package d binds the OpenShell service and passes Exec and Forward as +// method values to a routing helper, as the bidi stream wrappers do. +package d + +func stream(conn any) { + client := pb.NewOpenShellClient(conn) + openRouted(nil, client.Exec) + openRouted(client.Forward, nil) +}