Agent review pass.

This commit is contained in:
hjozwiak committed 2026-11-24 11:12:17 -05:00
1 parent e9b2e9508b
commit 64ee749a8e
105 files changed
+2098 -320

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ func TestRemoteBrailleSDKDirectionsAndEvents(t *testing.T) {
for _, language := range []string{"go", "python"} {
t.Run(language, func(t *testing.T) {
manager := testManager(t, DefaultLimits(), nil)
session := startSessionSDK(t, manager, language, "braille", "braille-stream")
session := startSessionSDK(t, manager, language, "braille")
lease := speechFixtureLease(t, session, "controlled", []string{"output-observe", "braille-stream"})
size := tentaclewire.RemoteBraille{Op: "size", Width: 40}
if _, code := remoteCall(t, session, "remote.braille", brailleRequest(lease, 1, size)); code != -32601 {
@@ -95,7 +95,7 @@ func TestRemoteBrailleSDKDirectionsAndEvents(t *testing.T) {
func TestRemoteBrailleSDKGrantAndSaturation(t *testing.T) {
manager := testManager(t, DefaultLimits(), nil)
session := startSessionSDK(t, manager, "go", "braille", "braille-stream")
session := startSessionSDK(t, manager, "go", "braille")
deliveries := session.EnableRemoteBraille()
lease := speechFixtureLease(t, session, "controlled", []string{"output-observe"})
size := tentaclewire.RemoteBraille{Op: "size", Width: 40}
+2 -2
View File
@@ -81,7 +81,7 @@ func sessionSDKProgram(t *testing.T, language string) []string {
func startSessionSDK(t *testing.T, manager *Manager, language, id string, extraGrants ...string) *Session {
t.Helper()
grants := append([]string{"output-observe", "remote-present", "clipboard-exchange"}, extraGrants...)
grants := append([]string{"output-observe", "remote-present", "braille-stream"}, extraGrants...)
session, err := manager.Start(t.Context(), Spec{ID: id, Program: sessionSDKProgram(t, language), SessionEvents: true, RemoteGrants: grants})
if err != nil {
t.Fatal(err)
@@ -212,7 +212,7 @@ func TestSessionSDKLifecycleConformance(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if _, err := session.RemoteContext(lease, "clipboard-exchange"); !errors.Is(err, ErrPermission) {
if _, err := session.RemoteContext(lease, "braille-stream"); !errors.Is(err, ErrPermission) {
t.Fatal("install grant became session grant")
}
if _, code := remoteCall(t, session, "remote.key", map[string]any{}); code != -32602 {