The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
lifecycle: fake the root-owned marker in the reinstall test
Claude67533522b442
diff --git a/cli/beacon/internal/endpoint/lifecycle/logaccess_test.go b/cli/beacon/internal/endpoint/lifecycle/logaccess_test.goindex 0b17bd0d..031ef5b5 100644--- a/cli/beacon/internal/endpoint/lifecycle/logaccess_test.go+++ b/cli/beacon/internal/endpoint/lifecycle/logaccess_test.go@@ -2,7 +2,6 @@ package lifecycleimport ("errors"- "os""path/filepath""runtime""strings"@@ -43,12 +42,10 @@ func TestBuildConfigWithoutAConfigKeepsTheModeTheMarkerRecords(t *testing.T) {t.Skip("this machine has a system endpoint config")}logPath := filepath.Join(t.TempDir(), "beacon-agent", "runtime.jsonl")- if err := os.MkdirAll(filepath.Dir(logPath), 0o755); err != nil {- t.Fatal(err)- }- if err := asymptoteobserve.SetRuntimeLogAccess(logPath, asymptoteobserve.LogAccessRestricted); err != nil {- t.Fatal(err)- }+ // The real check trusts only a root-owned marker; this stands in for one beside logPath.+ prev := logIsRestricted+ logIsRestricted = func(path string) bool { return path == logPath }+ t.Cleanup(func() { logIsRestricted = prev })if cfg := buildConfig(InstallOptions{LogPath: logPath}); cfg.LogAccess != asymptoteobserve.LogAccessRestricted {t.Fatalf("LogAccess = %q, want the marker's restricted mode kept", cfg.LogAccess)}