Skip to content

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

Merge origin/main into claude/issue-911-otlp-host-check

Claudec4a0a15613ed
diff --cc cli/beacon/internal/endpoint/collector/collector.go
index 14b8bf23,5005598a..aadad152
--- a/cli/beacon/internal/endpoint/collector/collector.go
+++ b/cli/beacon/internal/endpoint/collector/collector.go
@@@ -167,6 -173,14 +173,14 @@@ func ConfigYAML(cfg endpointconfig.Conf
modelContextYAML = " capture_model_context: true\n"
grpcLimitYAML = " max_recv_msg_size_mib: 32\n"
}
+ // The restricted log access mode makes the collector the only writer of the system log: hooks
+ // send their events to beacon_ingest over a local socket instead of appending, so the log can
+ // be 0640 root:beacon-log. Its rotation matches beaconjson's, since both append to one log.
- ingestYAML, extensions := "", "[health_check]"
++ ingestYAML, extensions := "", "[health_check, loopback_host]"
+ if cfg.RestrictedLogAccess() {
+ ingestYAML = fmt.Sprintf(" %s:\n log_path: %q\n rotate_bytes: 10485760\n rotate_archives: 5\n", IngestExtension, cfg.LogPath)
- extensions = "[health_check, " + IngestExtension + "]"
++ extensions = "[health_check, loopback_host, " + IngestExtension + "]"
+ }
return fmt.Sprintf(`receivers:
otlp:
protocols:
@@@ -198,8 -209,7 +212,8 @@@ processors
extensions:
health_check:
endpoint: 127.0.0.1:%d
+ loopback_host:
-
+ %s
service:
telemetry:
metrics:
diff --cc cli/beacon/internal/endpoint/collector/components.go
index 2f65f662,ab517068..1b04ac76
--- a/cli/beacon/internal/endpoint/collector/components.go
+++ b/cli/beacon/internal/endpoint/collector/components.go
@@@ -50,19 -51,24 +53,29 @@@ func CheckComponents(binary string, ext
return nil
}
have := map[string]bool{}
- for _, processor := range listed.Processors {
- have[processor.Name] = true
+ for _, c := range listed.Processors {
+ have["processor/"+c.Name] = true
}
- for _, name := range requiredProcessors {
- if !have[name] {
- return fmt.Errorf("collector %s is older than this beacon CLI: it has no %q processor, which the collector config needs; "+
- "use the %s from the same Beacon release, or pass --collector with one", binary, name, BinaryName)
+ for _, c := range listed.Extensions {
+ have["extension/"+c.Name] = true
+ }
+ for _, kind := range []string{"processor", "extension"} {
+ for _, name := range requiredComponents[kind] {
+ if !have[kind+"/"+name] {
+ return fmt.Errorf("collector %s is older than this beacon CLI: it has no %q %s, which the collector config needs; "+
+ "use the %s from the same Beacon release, or pass --collector with one", binary, name, kind, BinaryName)
+ }
}
}
+ haveExtension := map[string]bool{}
+ for _, extension := range listed.Extensions {
+ haveExtension[extension.Name] = true
+ }
+ for _, name := range extensions {
+ if !haveExtension[name] {
+ return fmt.Errorf("collector %s is older than this beacon CLI: it has no %q extension, which the restricted log access mode needs; "+
+ "use the %s from the same Beacon release, or pass --collector with one", binary, name, BinaryName)
+ }
+ }
return nil
}
diff --cc cli/beacon/internal/endpoint/collector/logaccess_test.go
index 00000000,d92a22fc..3f3c1f11
mode 000000,100644..100644
--- a/cli/beacon/internal/endpoint/collector/logaccess_test.go
+++ b/cli/beacon/internal/endpoint/collector/logaccess_test.go
@@@ -1,0 -1,86 +1,86 @@@
+ package collector
+
+ import (
+ "context"
+ "runtime"
+ "strings"
+ "testing"
+
+ "gopkg.in/yaml.v3"
+
+ endpointconfig "github.com/asymptote-labs/agent-beacon/cli/beacon/internal/endpoint/config"
+ )
+
+ func restrictedConfig(userMode bool) endpointconfig.Config {
+ cfg := endpointconfig.Default(userMode, "/var/log/beacon-agent/runtime.jsonl")
+ cfg.LogAccess = "restricted"
+ return cfg
+ }
+
+ func parsedYAML(t *testing.T, text string) map[string]interface{} {
+ t.Helper()
+ var doc map[string]interface{}
+ if err := yaml.Unmarshal([]byte(text), &doc); err != nil {
+ t.Fatalf("collector config is not YAML: %v\n%s", err, text)
+ }
+ return doc
+ }
+
+ func TestConfigYAMLServesTheIngestSocketInTheRestrictedMode(t *testing.T) {
+ if runtime.GOOS == "windows" {
+ t.Skip("no restricted mode on Windows")
+ }
+ doc := parsedYAML(t, ConfigYAML(restrictedConfig(false)))
+ extensions := doc["extensions"].(map[string]interface{})
+ ingest, ok := extensions[IngestExtension].(map[string]interface{})
+ if !ok {
+ t.Fatalf("no %s extension: %v", IngestExtension, extensions)
+ }
+ if ingest["log_path"] != "/var/log/beacon-agent/runtime.jsonl" {
+ t.Fatalf("log_path = %v", ingest["log_path"])
+ }
+ // The exporter and the extension append to one log, so they must rotate it the same way.
+ exporter := doc["exporters"].(map[string]interface{})["beaconjson"].(map[string]interface{})
+ if ingest["rotate_bytes"] != exporter["rotate_bytes"] || ingest["rotate_archives"] != exporter["rotate_archives"] {
+ t.Fatalf("rotation differs: ingest %v/%v, exporter %v/%v", ingest["rotate_bytes"], ingest["rotate_archives"], exporter["rotate_bytes"], exporter["rotate_archives"])
+ }
+ service := doc["service"].(map[string]interface{})
+ enabled := service["extensions"].([]interface{})
- if len(enabled) != 2 || enabled[0] != "health_check" || enabled[1] != IngestExtension {
++ if len(enabled) != 3 || enabled[0] != "health_check" || enabled[1] != "loopback_host" || enabled[2] != IngestExtension {
+ t.Fatalf("service extensions = %v", enabled)
+ }
+ }
+
+ func TestConfigYAMLLeavesTheIngestSocketOutOtherwise(t *testing.T) {
+ for name, cfg := range map[string]endpointconfig.Config{
+ "shared": endpointconfig.Default(false, "/var/log/beacon-agent/runtime.jsonl"),
+ "restricted in user mode": restrictedConfig(true),
+ } {
+ text := ConfigYAML(cfg)
+ if strings.Contains(text, IngestExtension) {
+ t.Errorf("%s: config names %s:\n%s", name, IngestExtension, text)
+ }
+ service := parsedYAML(t, text)["service"].(map[string]interface{})
- if enabled := service["extensions"].([]interface{}); len(enabled) != 1 || enabled[0] != "health_check" {
++ if enabled := service["extensions"].([]interface{}); len(enabled) != 2 || enabled[0] != "health_check" || enabled[1] != "loopback_host" {
+ t.Errorf("%s: service extensions = %v", name, enabled)
+ }
+ }
+ }
+
+ func TestCheckComponentsRequiresTheIngestExtensionWhenAsked(t *testing.T) {
+ prev := listComponents
+ t.Cleanup(func() { listComponents = prev })
- listed := "processors:\n - name: claude_api_body\n - name: beacon_privacy\nextensions:\n - name: health_check\n"
++ listed := "processors:\n - name: claude_api_body\n - name: beacon_privacy\nextensions:\n - name: health_check\n - name: loopback_host\n"
+ listComponents = func(context.Context, string) ([]byte, error) { return []byte(listed), nil }
+ if err := CheckComponents("/opt/beacon/bin/beacon-otelcol"); err != nil {
+ t.Fatalf("shared mode: %v", err)
+ }
+ err := CheckComponents("/opt/beacon/bin/beacon-otelcol", IngestExtension)
+ if err == nil || !strings.Contains(err.Error(), IngestExtension) {
+ t.Fatalf("an old collector without %s = %v", IngestExtension, err)
+ }
+ listed += " - name: beacon_ingest\n"
+ if err := CheckComponents("/opt/beacon/bin/beacon-otelcol", IngestExtension); err != nil {
+ t.Fatalf("a collector with %s: %v", IngestExtension, err)
+ }
+ }
diff --cc collector-builder/builder.yaml
index 0a8b6450,f93c2835..17a6a858
--- a/collector-builder/builder.yaml
+++ b/collector-builder/builder.yaml
@@@ -26,9 -26,9 +26,12 @@@ exporters
extensions:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension v0.121.0
+ - gomod: github.com/asymptote-labs/agent-beacon/collector-builder/exporter/beaconjsonexporter v0.0.0
+ import: github.com/asymptote-labs/agent-beacon/collector-builder/exporter/beaconjsonexporter/loopbackhostextension
+ path: ./exporter/beaconjsonexporter
+ - gomod: github.com/asymptote-labs/agent-beacon/collector-builder/exporter/beaconjsonexporter v0.0.0
+ import: github.com/asymptote-labs/agent-beacon/collector-builder/exporter/beaconjsonexporter/beaconingestextension
+ path: ./exporter/beaconjsonexporter
replaces:
- github.com/asymptote-labs/agent-beacon/pkg/asymptoteobserve => ../../../pkg/asymptoteobserve
diff --cc collector-builder/exporter/beaconjsonexporter/go.mod
index e5afd28b,a80378e8..4ef19f17
--- a/collector-builder/exporter/beaconjsonexporter/go.mod
+++ b/collector-builder/exporter/beaconjsonexporter/go.mod
@@@ -6,11 -6,8 +6,12 @@@ toolchain go1.27.
require (
github.com/asymptote-labs/agent-beacon/pkg/asymptoteobserve v0.0.0
+ go.opentelemetry.io/collector/client v1.27.0
go.opentelemetry.io/collector/component v1.27.0
+ go.opentelemetry.io/collector/component/componentstatus v0.121.0
+ go.opentelemetry.io/collector/component/componenttest v0.121.0
+ go.opentelemetry.io/collector/config/configauth v0.121.0
+ go.opentelemetry.io/collector/config/confighttp v0.121.0
go.opentelemetry.io/collector/config/configretry v1.27.0
go.opentelemetry.io/collector/consumer v1.27.0
go.opentelemetry.io/collector/consumer/consumertest v0.121.0
@@@ -48,15 -39,10 +49,14 @@@ require
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
+ github.com/pierrec/lz4/v4 v4.1.22 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
+ github.com/rs/cors v1.11.1 // indirect
github.com/stretchr/testify v1.11.1 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
- go.opentelemetry.io/collector/component/componentstatus v0.121.0 // indirect
- go.opentelemetry.io/collector/component/componenttest v0.121.0 // indirect
+ go.opentelemetry.io/collector/config/configcompression v1.27.0 // indirect
+ go.opentelemetry.io/collector/config/configopaque v1.27.0 // indirect
+ go.opentelemetry.io/collector/config/configtls v1.27.0 // indirect
go.opentelemetry.io/collector/confmap v1.27.0 // indirect
go.opentelemetry.io/collector/consumer/consumererror v0.121.0 // indirect
go.opentelemetry.io/collector/consumer/xconsumer v0.121.0 // indirect
diff --cc docs/changelog/cli.mdx
index 9af6e45a,df7afea6..b4b7eb1d
--- a/docs/changelog/cli.mdx
+++ b/docs/changelog/cli.mdx
@@@ -11,6 -11,96 +11,97 @@@ Stay up to date with the latest change
## Unreleased
+ - **Restricted log access for system installs** · `beacon endpoint install --system --log-access restricted` makes the collector the only writer of `/var/log/beacon-agent/runtime.jsonl`. Hooks send their events to it over a local Unix socket, each event is recorded under the account the operating system says sent it, and the log becomes `0640 root:beacon-log`, so local accounts can no longer rewrite the log or read other users' sessions. Events are spooled privately and delivered later while the collector restarts. Opt in per endpoint, or with `BEACON_LOG_ACCESS=restricted` for package installs; repair and upgrades keep the mode, and `beacon endpoint doctor` reports a collector that is not serving the socket. Log shippers that do not run as root need to join the `beacon-log` group. The default stays shared, and Windows is not supported yet. See [Restricted log access](/cli/endpoint-install#restricted-log-access).
+ - **Threat rules can match parsed shell commands** · Rules on spec `threat-rules/v1.2` can read `e.command.parsed_commands`: each command's name, arguments, environment prefixes, pipeline stage and the files it writes or deletes. `curl-pipe-to-shell`, `recursive-root-delete` and `base64-decode-piped-to-shell` use it, so they now catch `curl … | sudo -u root bash`, `| /usr/bin/env bash`, `{ curl …; } | sh`, `rm -rf "$HOME"` and `bash -lc '…'` scripts, and no longer fire on the same text inside a quoted string, a commit message or a here-document, or on `rm -rf ~/project/build`. An older Beacon skips v1.2 rules with a warning.
+ - **Shared sessions stay current after more kinds of `beacon share` call** · The dashboard now recognises `beacon share` run under `sudo`, `nohup`, environment assignments or backticks, or cut off when a long command was captured, so a session that shared itself is no longer marked stale.
+ - **Hook events keep a command's closing quote** · A command ending in a quoted word, such as `git commit -m "fix: thing"`, was recorded without its final `"`.
+ - **`beacon git` reads shell commands with a real shell parser** · Commit links no longer credit a session with words from a `# comment`, a here-document body, or an option value (`install -m 0755`, `perl -M…`), and now follow `if`/loops, brace expansion, `sudo -u`/`env` wrappers, `cp -t DIR`, `sed -i -e`, `perl -pi -e` and macOS `sed -i ''`. A command captured incomplete no longer contributes partial paths.
+ - **Destination packs work with any log path** · Datadog and Elastic configs are valid YAML on Windows and with quotes or control characters in the path, the smoke-test scripts the packs install no longer break on, or run, `$`, backticks, quotes or `}` in the log path, and `beacon endpoint wazuh` refuses a log path containing `<`, which Wazuh cannot read, instead of writing a config Wazuh rejects.
+ - **Setup menus no longer pick an option on a modified arrow or function key** · Shift or Option with an arrow key, or F2, in a setup menu chose an option without Enter; modified arrows now move the selection, and Esc cancels the menu as it does in the setup wizard.
+ - **Inventory content capture uses Beacon's full redaction** · With `include_contents` on, tokens in MCP args, URLs, auth headers and skill files (`Bearer`/`Basic`, `--token=…`, `--api-key VALUE`, `?api_key=…`, `docker -e`, URL passwords, provider token formats such as `ghp_` and JWTs) were sent unredacted; inventory now applies the same redaction as session telemetry, with `[REDACTED]` as the placeholder. Secret-named keys are judged by whole words, so `DB_PASS` and `passphrase` are redacted while `author`, `max_tokens: 4096` and `token_type: bearer` are kept, in telemetry too, and a `Bearer` value no longer swallows the next line.
+ - **Hooks under a home path with an apostrophe stay with their own runtime** · With a home directory such as `C:\Users\O'Brien`, status, repair and uninstall treated another runtime's Beacon hook as their own, and uninstall could delete it.
+ - **Inventory lists every installed skill** · Skills named `build`, `dist`, `vendor`, `tmp` or `temp` were left out of the inventory although the runtime loads them.
+ - **`beacon git` works when `log.showSignature` is on** · `beacon git link`, `beacon git notes` and the post-commit hook failed or misread commits in repositories that show commit signatures, and a signed cherry-pick could be credited to the current session.
+ - **File URIs are recorded as real paths** · Files that MCP tools and editors report as `file:///C:/…` are recorded as `C:/…`, and `beacon git link` now reads `file://` paths with spaces or a `localhost` host, so rules and commit links see the real file.
+ - **Shell commands are recognised the same way everywhere** · Commands Codex ran through `shell_command` (Codex 0.135–0.149) now show up as commands in both live telemetry and imported sessions, the older `shell` tool and argv-style commands show the command line instead of raw JSON or brackets, Claude Code's PowerShell tool counts as a command in imported sessions, and an MCP tool with a `cmd` argument is no longer mistaken for a shell command.
+ - **`beacon endpoint install` no longer breaks a commented Codex `config.toml`** · A `# comment` after a table header made install delete the user's `[mcp_servers.<name>]` table or write a second `[otel]` table Codex refuses to load.
+ - **Passwords in URLs with no user name are redacted** · `redis://:password@host` and similar URLs now have the password redacted from logs.
+ - **`beacon endpoint update` works on Linux .deb/.rpm installs** · It reported that no package was available and refused `--apply`; it now finds the format-specific package in the release manifest.
+ - **`beacon endpoint install` no longer wipes an unreadable Claude settings file** · A `~/.claude/settings.json` Beacon couldn't parse was replaced with only Beacon's settings. Install now stops and names the file and the parse error instead, for Gemini too, and status reports say which file is invalid.
+ - **Inventory heartbeats stop re-sending unchanged snapshots** · A machine where nothing changed could report a change and re-upload its full inventory when the same MCP server name was configured in several Claude Code projects. The snapshot digest no longer depends on the order entries are listed in.
+ - **VS Code settings with comments are read and kept** · `beacon endpoint discover`, `status` and `doctor` reported Copilot telemetry as misconfigured for a commented `settings.json`, and `beacon endpoint integrations vscode setup` refused the file. Both now accept it, and setup changes only Beacon's telemetry keys, leaving your comments, key order and indentation as they were.
+ - **Dashboard labels no longer break emoji or accented characters when shortened** · Long prompts and names are shortened between visible characters, so emoji, flags and accents at the cut stay whole.
+ - **Hand-written `--platform=<name>` hooks are recognised** · `beacon endpoint hooks status` and `uninstall` now see Claude Code, Codex, Factory and Qwen hooks written with `--platform=<name>`.
+ - **Google OAuth access tokens are redacted** · `ya29.…` tokens printed on their own, by `gcloud auth print-access-token` or the GCE metadata server, are now redacted from logs.
+ - **Reading `.env.example` and other dotenv templates is no longer a credential read** · Templates such as `.env.example`, `.env.sample` and `.env.local.example` no longer raise credential-file-read or the read-then-egress, destructive, MCP or handoff correlations; real `.env` files still do.
+ - **opencode records every file a shell `rm` deletes** · A shell `rm` that removes several files now records a delete for each, not just the first, and comments, variables or globs in the command are no longer recorded as files.
+ - **`beacon scan` no longer prints broken characters** · A command or prompt shortened to fit one line of `beacon scan` output could be cut in the middle of an accented, CJK or emoji character. It is now cut between characters.
+ - **Env-prefixed git history rewrites are flagged** · `GIT_SEQUENCE_EDITOR=… git rebase -i`, `GIT_EDITOR=… git commit --amend` and other `VAR=value git …` forms now raise git-history-rewrite.
+ - **Context utilization uses the right window for more Claude ids** · Dotted ids from Copilot and OpenRouter (`claude-sonnet-4.6`) and Bedrock ids (`us.anthropic.claude-sonnet-4-6-v1:0`) now use the 1M window instead of 200K or none.
+ - **`ssh-add -E md5 -l` is flagged as key enumeration** · Options before `-l`/`-L` no longer hide an ssh-agent key listing.
+ - **Environment-dump alerts follow the data** · env-dump-piped-to-network now fires when the environment is actually piped, substituted or redirected into a network sender (including `curl --json @-` and `curl -d "$(env)"`), and no longer on unrelated commands such as `set -e; … | curl`.
+ - **crontab installs are flagged when followed by another command, and backups no longer are** · `crontab <file> && …` and files under `~` now raise crontab-modification; `crontab -l > backup` no longer does.
+ - **Archives piped into an upload are flagged however curl reads them** · archive-then-upload now matches any curl or wget upload of the piped archive (`-F'file=@-'`, `-d@-`, `--upload-file -`, `/dev/stdin`).
+ - **PATH-injection alerts target shadowing, not tool installs** · path-injection-into-login-file now fires when a PATH line written to a startup file (by `>>` or `tee`) adds a world-writable, relative or current directory, and no longer on routine entries such as `~/.cargo/bin`.
+ - **gpg secret-key exports are flagged however they're spelled** · `gpg2`, `--export-secret-key` and abbreviations such as `--export-secret-k` now raise gpg-keyring-access.
+ - **Writes to sudoers through `tee` are flagged however `tee` is called** · `tee --append`, `tee -ai` and sudoers as a later `tee` target now raise sudoers-nopasswd-tampering.
+ - **`modprobe` loads are flagged with parameters or a following command** · `modprobe nvidia_drm modeset=1` and `modprobe br_netfilter; sysctl --system` now raise kernel-module-load.
+ - **Push redirection through git config is flagged** · `git config remote.<name>.pushurl <url>` and one-off `git -c remote.<name>.url=…`/`pushurl=…` now raise git-remote-tampering.
+ - **ssh ProxyCommand shell escapes are flagged however `-o` is written** · `-oProxyCommand=…`, `-o 'ProxyCommand=…'`, `-o 'ProxyCommand …'` and the same through `scp` or `sftp` now raise shell-escape-via-interactive-tool.
+ - **`rm -fr` and `rm -rfv` count as high-risk in approval rules** · The approval-abuse rules now treat any `rm` flag cluster with both `r` and `f`, such as `-fr` or `-rfv`, like `rm -rf`.
+ - **`systemctl` options before `enable` no longer hide persistence** · `systemctl --now enable`, `systemctl -q enable` and `--root=… enable` now raise persistence-install-command.
+ - **root-equivalent-group-add is accurate under `sudo`** · It now flags `usermod --groups` and `gpasswd --add`, and no longer fires on every `sudo usermod -aG` or `sudo adduser` regardless of the group.
+ - **Base64 payloads piped to a shell by path are flagged** · `| /bin/bash`, `| /usr/bin/env bash`, `| /opt/homebrew/bin/bash` and `| sudo -E bash` now raise base64-decode-piped-to-shell.
+ - **Fork bombs are flagged under any name or spacing** · fork-bomb-pattern now matches the shape of the classic `:(){ :|:& };:`, so `:(){ :|: & };:` and renamed versions such as `f(){ f|f& };f` raise it too.
+ - **`dd` disk fills are flagged in either operand order** · `dd of=… if=/dev/zero` now raises disk-fill-attempt, as `dd if=/dev/zero of=…` already did.
+ - **Root bind mounts are flagged however they're written** · `docker run --volume=/:…`, `--mount source=/` (or `src=/`) and their quoted forms now raise privileged-container-run.
+ - **Wide `ps` scrapes for secrets are flagged** · `ps auxww` and `ps -eo args` piped into a search for tokens or passwords now raise process-table-secret-scrape.
+ - **Browser-session rules cover Edge on macOS and pre-release channels** · Reading cookies or saved logins from Microsoft Edge on macOS, or from the Beta, Dev and Canary channels of Edge and Chrome, now raises the browser-session findings.
+ - **Less common git hooks are flagged** · Planting a `reference-transaction`, `post-index-change` or other git hook missing from the list now raises git-hook-installed.
+ - **`codex -s danger-full-access` is flagged** · Permission-bypass detection now catches codex's short `-s` sandbox flag, not just `--sandbox`.
+ - **SSH tunnels are flagged wherever the forward flag appears** · `ssh -N -R …`, `ssh -fNL …` and `ssh host -R …` now raise ssh-tunnel-egress.
+ - **Refspec force-pushes to a protected branch are flagged** · `git push --force origin HEAD:main` and similar `src:dst` pushes now raise the protected-branch finding, and a branch such as `main-backup` no longer does.
+ - **world-writable-chmod catches 666-style modes** · Any octal mode that grants write to others, such as `chmod 666` or `chmod 1777`, now raises world-writable-chmod, and a numbered file name such as `chmod +x 007.sh` no longer does.
+ - **More setuid forms detected** · `chmod +s`, `chmod 6755` and `chmod 04755` now raise setuid-or-root-shell-escalation, and a numbered file name such as `chmod 644 2024.csv` no longer does.
+ - **Grok session sync no longer duplicates events after a partial sync** · A sync that stopped partway through a session re-sent prompts, replies and tool calls it had already written under new ids, so they appeared twice.
+ - **Session syncs no longer lose their own events to log rotation** · Every `beacon endpoint <runtime> sync` except Claude Code's and Devin CLI's could write past the runtime log's rotation window, so rotation deleted the sync's first events while it still reported success. Syncs now stop before that, exit non-zero, and leave the rest for the next sync; `--rotate-bytes` sets the window. The install backfill reports a runtime that stops this way as limited rather than failed.
+ - **`curl … | sudo -E bash` is detected** · Piping a download into `sudo` with flags, such as NodeSource's `sudo -E bash -`, now raises curl-pipe-to-shell.
+ - **Root-wipe commands are detected** · `rm -rf /*`, `rm -rf --no-preserve-root /` and `rm -r -f /` now raise recursive-root-delete.
+ - **`beacon handoff resume --launch` no longer reports a started launch as cancelled** · When the new terminal picked up the launch just as the wait timed out, Beacon said the launch was cancelled while the runtime started anyway, so a retry could start a second one.
+ - **`beacon endpoint gcs validate` prints a command that works** · Its follow-up told you to `gzip -dc` the uploaded object, but the GCS forwarder uploads plain `.jsonl`, so the command printed nothing.
++- **The collector's OTLP HTTP receiver rejects non-loopback Host headers** · A web page that DNS-rebinds its own hostname to `127.0.0.1` could post forged logs and spans to `127.0.0.1:4318`, which landed in the runtime log and every destination. The receiver now answers 401 unless the Host header names localhost or a loopback IP, as the dashboard and MCP server already do. Runtimes, the SDK and the browser extension send a loopback Host and are unaffected; gRPC on 4317 is unchanged. Use the `beacon-otelcol` from the same release, since an older one refuses the new config.
+
+ ## October 2026
+
+ ### v1.3.46 · October 22, 2026
+
+ - **Commands and paths containing `__` are no longer merged as duplicates** · When one action reached Beacon through two capture paths seconds apart, Beacon matched them with a key that rewrote `__` as `:` the way it normalizes MCP tool names, including in command text and file paths, so two different commands such as `echo a__b` and `echo a:b` could be taken for one and the second dropped. Commands and paths are now compared as written.
+ - **Redacted browser capture no longer stalls on long tokens** · With retention set to redacted, a long unbroken run of letters and digits in a prompt, answer or tool call, such as a base64 blob, made the extension's email scrubber take about two seconds per 64 KB, growing with the square of the length. It now takes well under a millisecond.
+ - **`beacon login` opens your Windows browser under WSL** · Under WSL, `beacon login` said a browser was opening, showed no URL, and timed out when no Linux browser was installed. It now opens the Windows browser, as do `beacon endpoint connect` in user mode and the dashboard.
+ - **Reopened dashboard lenses show new events** · A lens closed and reopened on a live session page kept showing the data from when it was first opened; it now loads the session's current events.
+ - **Browser-extension answers show in traces, including earlier ones** · Answers the Claude.ai and ChatGPT extension recorded since July were stored in a shape traces could not read, so they still did not appear; they now do, earlier records included, and long answers no longer show as raw JSON.
+ - **Regenerating a candidate keeps its review** · Running `beacon memory candidates create` or `beacon memory evaluations run` again on the same trace reset an approved, rejected or superseded candidate to pending, so `beacon memory skills preview` refused it. Existing candidates now keep their review, and both commands print each candidate's stored state.
+ - **Cloud uploads no longer lose or resend events when hooks overlap** · When two cloud-agent hooks uploaded at the same time, a slower upload could replace the S3 or GCS object with an older copy, dropping the newest events, and Asymptote Managed ingest could receive the same events twice. Uploads now run one at a time, so the bucket object always ends with the latest events and each event reaches managed ingest once.
+ - **OpenCode no longer waits on a telemetry backlog** · When Beacon's hook command was slow, each OpenCode prompt, command and tool call waited for every earlier queued event to be recorded first, so a few slow events could hold a tool call for six seconds or more. Each call now waits at most two seconds; the queued events are still recorded in order.
+ - **Shared traces drop a host-only remote's query** · `beacon share` no longer includes a query string or fragment from a host-only git remote URL, such as `https://git.example.com?access_token=…`, in the shared trace's repository URL or project name.
+ - **Concurrent memory reviews no longer conflict** · Approving and rejecting the same memory candidate at the same time could let both commands report success, leaving a rejected candidate whose memory was still recalled. Each review now succeeds or fails as a whole, and the slower command reports that the candidate was already reviewed.
+ - **Pi-family traces show the assistant's answer** · The Pi, Oh My Pi, Prime Agent and Senpi extensions recorded each finished assistant message's reasoning and token usage but not its text, so a live-captured session showed the model's thinking without its reply. The reply is now recorded as `agent.message`.
+ - **Install rejects unusable OTLP ports** · `beacon endpoint install` accepted `--otlp-grpc-port` or `--otlp-http-port` values outside 1–65535, the same port for both, or a negative `--health-port`, and wrote a collector configuration and harness settings pointing at an address the collector can never listen on. It now stops before writing anything and says which flag to change.
+ - **Memory sees how long sessions end** · `beacon memory evaluations run` now samples the last events of sessions longer than 2,000 events instead of stopping at event 2,000, and `beacon memory candidates create` cites every event of such a session as evidence.
+ - **DeepSeek Harness session sync reads session format v4** · `beacon endpoint dsh sync` and the install backfill read the session files DeepSeek Harness writes (`session.v4.jsonl.zstd`, current through 0.2.1-rc.2) with the shapes of an older format. Every tool call came out as `tool.invoked` with empty arguments, every result was dropped (no commands, exit codes, file reads, edits, MCP calls or failures), each session lost its working directory and parent, injected context such as agent instructions and time snapshots was recorded as prompts, and a forked session recorded its parent's history again as its own. Sync now decodes the arguments, joins each result to its call, records the tools a `run_code` program dispatches, counts only the prompts a person sent, records each call's result once when compaction rewrites it, skips a fork's inherited history, and records the tokens of compaction's model call. Sessions already collected are not read again; to re-read them, remove `~/.beacon/endpoint/state/dsh.json` and run `beacon endpoint dsh sync`, which writes their events again under the same ids. See [Reading the session store](/runtimes/deepseek-harness#reading-the-session-store).
+ - **OpenCode 2.x sessions sync** · `beacon endpoint opencode sync` and the install-time backfill read only OpenCode 1.x's session tables, so every session started on OpenCode 2.x was missed. They now read 2.x's `session_v2` and `session_message`: prompts, assistant text and reasoning, tool calls and `!` shell commands, and token usage and cost, including compaction. Sessions migrated from 1.x are not written twice. A long first sync also saves its progress every few seconds, so an interrupted run resumes where it stopped.
+ - **Hermes sync reads older state databases** · `beacon endpoint hermes sync` and the install-time backfill failed with `no such column: cwd` on a Hermes `state.db` from before Hermes added that column, `archived` or `messages.active`. Missing columns now read as empty or as their defaults.
+ - **Browser extension permission banner shows current access** · When site access changed while the extension's popup or options page was open, a slower earlier check could overwrite the newer one, so revoking access could leave the warning that capture is unavailable hidden. The banner now shows only the latest check.
+ - **Dashboard inventory says when it can't load** · The Agent Inventory page lost its status line in a redesign, so a failed load stayed on "Loading inventory…" and a failed refresh gave no warning. The page again shows the error, and the last scan time once it loads.
+ - **Browser chat events say when content was cut** · The browser extension trims long prompts, answers and tool arguments or results to fit, but tool records never said so, and the collector kept the extension's truncation flag only in raw attributes, which metadata-only forwarding drops. Browser chat events now carry `field_truncated` whenever any of their content was cut.
+ - **Browser chat text no longer ends in `�` when cut** · When the browser extension trimmed a long field and the cut fell inside an emoji, the kept text ended in a replacement character that wasn't in the original. The cut now drops the whole character.
+ - **An MCP tool description that changes back is recorded** · When a Claude Code MCP tool's description changed and then changed back within a few seconds, the runtime log and forwarding destinations kept the changed description as the latest listing, even though the tool was back to its original. The revert is now recorded too.
+ - **Expanded findings stay on the finding you opened** · The dashboard's Findings page refreshes every 15 seconds and remembered expanded findings by row position, so when a refresh added or removed findings above one you had open, a different finding's evidence appeared in its place. Expansion now follows the finding itself.
+ - **OpenCode hooks follow `XDG_CONFIG_HOME`** · OpenCode reads its plugins from `$XDG_CONFIG_HOME/opencode` when that is set, but `beacon endpoint hooks install --harness opencode` always wrote the Beacon plugin under `~/.config/opencode`, so OpenCode never loaded it and nothing was captured. Install, discovery and inventory now use the directory OpenCode reads, as `beacon mcp connect` already did.
+ - **Qwen Code settings follow `QWEN_HOME`** · `beacon endpoint hooks install --harness qwen`, `beacon endpoint discover` and inventory now use `$QWEN_HOME/settings.json` when `QWEN_HOME` is set, as Qwen Code does, including a leading `~` and a relative path. They always used `~/.qwen/settings.json` before, so with `QWEN_HOME` set the hooks went where Qwen never reads them and nothing was captured. A per-user install or repair also writes the resolved `QWEN_HOME` into the scheduled inventory job.
+ - **curl passwords and cookies are redacted** · Commands like `curl -u admin:password`, `curl -b 'sessionid=…'` and `curl -H 'Cookie: …'` reached the runtime log and forwarding destinations with the password or cookie readable. Redaction now replaces curl's `-u`/`--user`/`--proxy-user` password (keeping the user name), cookie strings passed with `-b`/`--cookie`, and `Cookie` and `Set-Cookie` header values. A cookie file passed to `-b` and prose that mentions "cookie:" are left as written.
+ - **Upgrades update the Beacon Cloud forwarder's service definition** · The forwarder's launchd or systemd unit was written only by `beacon endpoint connect`, so endpoints connected before v1.3.37 kept a forwarder that logged to `/tmp`, where in system mode any local user could plant a link that root then wrote through. Install, repair and package upgrades now rewrite a forwarder unit that differs from the one Beacon writes, which moves those logs to `~/Library/Logs/Beacon` or `/Library/Logs/Beacon`, and restart the forwarder if it was running. A stopped forwarder stays stopped, and the device key, enrollment and Vector's checkpoints are left alone.
+ - **Commit links no longer credit a session with files its shell command did not write** · When a shell command contained a word Beacon cannot resolve, such as `$DEST`, `~/backup/` or a quoted `"$TOOL"`, that word was dropped and the words after it moved up, so `cp a.txt b.txt ~/backup/` was read as writing `b.txt` and `sudo "$CMD" rm keep.txt` as deleting `keep.txt`. That could link the session to a commit that changed those files. Unknown words now keep their place and are never reported, and `cp "$SOURCE" output.txt` is now counted as writing `output.txt`.
- **Hooks ignore settings a repository could supply** · The hooks no longer take the auto-share settings file from `BEACON_SHARE_SETTINGS_FILE`; they read only `~/.beacon/endpoint/share.json`, so an environment a repository supplies cannot turn auto-share on for its own sessions. `beacon share auto` still honors the variable and warns when the hooks read a different file. The cloud shuttle now reads and writes only under `/tmp/beacon`, so the same environment cannot have it upload a host's runtime log, and `beacon cloud … print-hooks` rejects a `--log-path` outside it rather than writing a log that is never uploaded.
- **Devin CLI session history sync** · `beacon endpoint devin sync` reads Devin CLI's committed SQLite session store locally and read-only into the runtime log, adding what the live hooks cannot see: assistant replies, reasoning, per-message token usage, the per-turn model with model-change events, compaction summaries, and `approval.denied` for rejected tool calls. Sessions the hooks already cover get only those additions, so nothing is counted twice, and the install backfill includes Devin CLI. Verified on macOS; the Linux and Windows paths are best effort. See [Devin CLI](/runtimes/devin#session-database-sync).
- **Claude.ai and ChatGPT answers show in traces** · Answers the browser extension records as `agent.response.completed` were classified as `other` in trace views, so `beacon endpoint traces show`, the dashboard and shared traces showed the prompt without the answer. They are now assistant messages carrying the answer, as are plans recorded as `agent.plan`. OpenCode's separate completion event, which carries only usage, stays out of the conversation. Local history is rebuilt on its next read, so earlier sessions show their answers too.