From 30cc4239d8a38274aa0286c4a9f085a9a4299926 Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 14 Apr 2026 14:21:09 +0100 Subject: [PATCH] refactor(agent): runtimeAvailable uses core/process primitive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace os/exec.LookPath with process.Program.Find() — keeps dispatch runtime detection in line with the repo's process-execution convention and removes the os/exec import from pkg/agentic/dispatch.go. Convergence-pass from spark-medium — no new features found on this sample, confirms core/agent and go-store RFC parity is complete. Co-Authored-By: Virgil --- pkg/agentic/dispatch.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/agentic/dispatch.go b/pkg/agentic/dispatch.go index 1cd5bd4..4269f77 100644 --- a/pkg/agentic/dispatch.go +++ b/pkg/agentic/dispatch.go @@ -4,7 +4,6 @@ package agentic import ( "context" - "os/exec" "runtime" "time" @@ -256,11 +255,8 @@ func runtimeAvailable(name string) bool { default: return false } - binary := containerRuntimeBinary(name) - if _, err := exec.LookPath(binary); err == nil { - return true - } - return false + program := process.Program{Name: containerRuntimeBinary(name)} + return program.Find() == nil } // resolveContainerRuntime returns the concrete runtime identifier for the