Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

add fix

Justin D'Souzafcc00749e298
diff --git a/cli/beacon/internal/embedded/validate_test.go b/cli/beacon/internal/embedded/validate_test.go
index eb10a9c3..6d45d1ea 100644
--- a/cli/beacon/internal/embedded/validate_test.go
+++ b/cli/beacon/internal/embedded/validate_test.go
@@ -13,9 +13,8 @@ func TestValidateArchitecture_CurrentPlatform(t *testing.T) {
t.Skip("no real binary embedded (placeholder)")
}
- err := ValidateArchitecture()
- if err != nil {
- t.Logf("ValidateArchitecture returned error (may be expected in dev): %v", err)
+ if err := ValidateArchitecture(); err != nil {
+ t.Fatalf("embedded hooks binary should match current platform: %v", err)
}
}
diff --git a/cli/beacon/internal/endpoint/hooks/runtime.go b/cli/beacon/internal/endpoint/hooks/runtime.go
index 6bfa62d3..4043039e 100644
--- a/cli/beacon/internal/endpoint/hooks/runtime.go
+++ b/cli/beacon/internal/endpoint/hooks/runtime.go
@@ -35,6 +35,9 @@ func installRuntimeHooks(runtime hookRuntime, opts RuntimeOptions) (runtimeStatu
if !embedded.HasEmbeddedBinary() {
return runtimeStatus{}, fmt.Errorf("no hooks binary embedded")
}
+ if err := embedded.ValidateArchitecture(); err != nil {
+ return runtimeStatus{}, fmt.Errorf("embedded hooks binary is not usable on this host: %w", err)
+ }
if opts.LogPath == "" {
opts.LogPath = defaultLogPath(opts.UserMode)
}