Dashboard › opencode › Distillation
690d6c03-7322-48c5-a02f-46f1a74aaf7c["lore_tm_v1_jruvZwJ20K7mSs1yyx-cXxvkICPzlNZo65mmB_eSeQw","lore_tm_v1_bG0hUzX4rj40dNyMBhNZQrzLwMCF7iEqM3McMjBcZ1o"]
Date: Sep 8, 2026
/home/byk/.local/share/opencode-v2-pilot/supervisor/internal/supervisor/auth_test.go, a 96-line Go test file in package supervisor. It defines authenticationManager with a configurable clientIdentity; ClientState returns that identity, while Start, StopAndWait, Wait, CleanupOrphans, and Close are no-op test implementations.currentIdentity() in /home/byk/.local/share/opencode-v2-pilot/supervisor/internal/supervisor/auth_test.go returns clientIdentity{MainPID: uint32(os.Getpid()), ActiveState: "active", SubState: "running", ControlGroup: expectedClientCgroup, InvocationID: []byte("0123456789abcdef")}.TestAuthenticateCurrentPeerAndRecheck creates a Unix connection pair, authenticates the server-side peer with the current process UID/GID and currentIdentity(), and verifies peer.Recheck(context.Background(), manager) succeeds.TestAuthenticateRejectsWrongCredentialsAndIdentity covers 7 rejection cases: 1. UID changed to os.Getuid() + 1; 2. GID changed to os.Getgid() + 1; 3. MainPID incremented; 4. ActiveState changed to "inactive"; 5. SubState changed to "exited"; 6. ControlGroup changed to "/wrong"; 7. InvocationID set to nil. Each case requires authenticate(...) to fail.TestRecheckRejectsChangedInvocation first authenticates with invocation ID []byte("0123456789abcdef"), then changes manager.identity.InvocationID to []byte("fedcba9876543210") and requires peer.Recheck(...) to fail.packages/plugin/src but omits the uncommitted Core host change exposing ctx.permission.assert; 2. the manifest omits the executable readiness verifier. Assistant planned to check whether the candidate binary or another immutable artifact closes either gap before classifying them.