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
Document the scheduled inventory job
shukieshah2faf95ae9ed7
diff --git a/CLAUDE.md b/CLAUDE.mdindex 43ecdd3d..ebde4abd 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -50,6 +50,7 @@ Supported runtime surfaces today:- Runtimes that ride the shared hook and OTLP paths without a contract worth writing down here: Antigravity CLI, Devin CLI, Devin Desktop, Factory Droid, Gemini CLI, GitHub Copilot CLI, Grok Build, Hermes Agent, OpenCode (a Beacon-managed plugin, `plugins/opencode-beacon`), Qwen Code, and VS Code. OpenClaw Gateway is OTLP setup guidance and status checking under `cli/beacon/internal/endpoint/integrations/openclaw`, the same shape as Cowork, rather than a harness. The bullets above are the runtimes with a reverse-engineered or otherwise surprising contract, not the full supported set — `harness.DiscoverAll` in `cli/beacon/internal/endpoint/harness` and the install switch in `cli/beacon/cmd/endpoint_hooks.go` are the authoritative lists. Prime Agent has a reserved harness name and a `plugin` collection method but no collection path yet.- Browser chat telemetry through an optional Chrome MV3 extension (`browser-extension/`) covering claude.ai and chatgpt.com. A main-world interceptor tees the streamed response, a per-site adapter parses it into a normalized turn, and the service worker POSTs OTLP GenAI logs to the local collector on `127.0.0.1:4318`; the extension never writes files and never contacts a remote endpoint. `harness.name` resolves to `claude_web` or `chatgpt_web` (already handled by `NormalizeHarnessName` in `pkg/asymptoteobserve/harness.go`, where the browser cases must stay above the generic `claude` rule) and `harness.collection_method` is `otlp`. Scope is deliberately narrow: only those origins' chat streams, never other tabs or general browsing. Retention defaults to `full`, so prompt and response text is retained by default; this is documented rather than defaulted down, because browser chat telemetry without content has no investigative value. Treat the adapters as experimental, since both sites' stream formats are private and undocumented.- `beaconjson` OpenTelemetry Collector exporter that converts OTLP logs, traces, metrics, and resource attributes into Beacon endpoint JSONL.+- Endpoint inventory (`inventory.heartbeat` / `inventory.snapshot` in `inventory_state.jsonl`) is written by a scheduled job, `com.beacon.endpoint.inventory` (`service.InventoryManager`, user LaunchAgent or system LaunchDaemon, `beacon-inventory.timer` on systemd), every six hours and once at load, on by default and reconciled by `lifecycle.ReconcileInventoryJob` on every install, repair and package upgrade (`beacon endpoint inventory install-daemon`). Agent hooks do not trigger inventory any more; the hook binary's `--cli` flag and `inventory-heartbeat` subcommand survive only as no-ops for hook commands written by older versions, and `beacon endpoint inventory heartbeat --trigger hook` is likewise retired. A system-mode run inventories the active console user's home and still writes the liveness heartbeat when nobody is logged in; the scheduled scan has no working directory, so project-scoped config is only in `beacon endpoint inventory`.- Asymptote Managed forwarding, the one opt-in network channel for telemetry: `beacon endpoint connect` (`cli/beacon/cmd/endpoint_connect.go`, `cli/beacon/internal/endpoint/asymptote`) runs a browser PKCE approval against the dashboard's `/cli/enroll` page, stores the per-device key in `<BaseDir>/asymptote/vector-secrets.json` (0600, 0700 dir), renders the `asymptote` pack into `vector.toml`, validates it, and runs Vector as `com.beacon.endpoint.asymptote-forwarder` / `beacon-asymptote-forwarder.service` through `service.ForwarderManager` (user or system mode; refused in supervised mode). `enrollment.json` and `config.json`'s `managed_ingest` block carry only non-secret identity; `beacon endpoint status` reports forwarder state and a live credential check (`GET /v1/ingest/health`, 3 s timeout); `disconnect` and `uninstall` remove the forwarder and credentials but never revoke server-side.- Asymptote Observe TypeScript SDK instrumentation for cloud applications, starting from OpenTelemetry/OpenLLMetry patterns and `observe()` wrappers.- Elasticsearch/Filebeat content pack generation for forwarding local Beacon JSONL into customer-managed Elastic deployments or the bundled loopback-only development stack.diff --git a/docs/changelog/cli.mdx b/docs/changelog/cli.mdxindex b0e8fb23..c7518e02 100644--- a/docs/changelog/cli.mdx+++ b/docs/changelog/cli.mdx@@ -11,6 +11,24 @@ Stay up to date with the latest changes to the Agent Beacon CLI.## September 2026+### Unreleased++- **Inventory is a scheduled job now** · Endpoint inventory heartbeats used to fire only from+ agent hooks, so a machine that ran no hook-instrumented agent (or an idle one) never reported,+ and system installs needed user hooks to be able to write a root-owned log. `beacon endpoint+ install` now writes a scheduled job in both modes, `com.beacon.endpoint.inventory` (LaunchAgent+ or LaunchDaemon) on macOS and `beacon-inventory.timer` on Linux, that writes `inventory.heartbeat`+ every 6 hours and once at load, and `inventory.snapshot` when the inventory changed. It is on by+ default; the package postinstall reconciles it on every upgrade, so an existing system install+ starts reporting inventory after its next self-update with no action. `inventory_heartbeat.enabled:+ false` removes it; `ttl_seconds` is gone (old keys are ignored). Hooks no longer trigger inventory:+ Codex's `UserPromptSubmit` inventory hook is dropped, hook commands no longer carry `--cli`, and+ the hook binary keeps `--cli` and `inventory-heartbeat` as no-ops for hook files written by+ older versions. `beacon endpoint status` gains an `Inventory heartbeat` line and `--json`+ `inventory_heartbeat` object. A system-mode run inventories the console user's home; the+ scheduled scan no longer includes project-scoped config, which `beacon endpoint inventory` still+ reports.+### v1.3.10 · September 12, 2026- **goose (Block) hook telemetry** · The hooks binary reads goose's plugin hookdiff --git a/docs/cli/endpoint-install.mdx b/docs/cli/endpoint-install.mdxindex 7ecc67b5..b6c9065f 100644--- a/docs/cli/endpoint-install.mdx+++ b/docs/cli/endpoint-install.mdx@@ -13,7 +13,7 @@ The service is a launchd job on macOS and a systemd unit on Linux. Where neitherbeacon endpoint install```-By default, Beacon configures Claude Code and Codex CLI telemetry for local or customer-controlled runtime JSONL logs. Gemini CLI and VS Code Copilot telemetry are opt-in with the `gemini` and `vscode` harnesses. Claude Code can also use optional hook telemetry for richer lifecycle, subagent, permission, and tool detail; install the endpoint agent first, then add Claude hooks with `beacon endpoint hooks install --harness claude`. Codex uses OTLP logs plus one selective turn trace for tokens, and its required SessionStart hook adds local OS-user context and inventory heartbeats. Beacon applies redaction, sanitization, truncation, and event-size limits before writing supported content fields. GitHub Copilot CLI and Factory Droid OTLP are managed through their launch environments, so Beacon validates their telemetry state but does not mutate shell profiles during install.+By default, Beacon configures Claude Code and Codex CLI telemetry for local or customer-controlled runtime JSONL logs. Gemini CLI and VS Code Copilot telemetry are opt-in with the `gemini` and `vscode` harnesses. Claude Code can also use optional hook telemetry for richer lifecycle, subagent, permission, and tool detail; install the endpoint agent first, then add Claude hooks with `beacon endpoint hooks install --harness claude`. Codex uses OTLP logs plus one selective turn trace for tokens, and its required SessionStart hook adds local OS-user context. Beacon applies redaction, sanitization, truncation, and event-size limits before writing supported content fields. GitHub Copilot CLI and Factory Droid OTLP are managed through their launch environments, so Beacon validates their telemetry state but does not mutate shell profiles during install.## Flagsdiff --git a/docs/cli/endpoint-inventory.mdx b/docs/cli/endpoint-inventory.mdxindex 890c0379..5cbb804f 100644--- a/docs/cli/endpoint-inventory.mdx+++ b/docs/cli/endpoint-inventory.mdx@@ -60,29 +60,32 @@ Content capture is opt-in and offline; `--contents` only reads files inventory a## Inventory heartbeats-Endpoint hooks can periodically append inventory telemetry to a separate `inventory_state.jsonl` file beside `runtime.jsonl`. The hook that fires is recorded as trigger provenance, but the default heartbeat scans all supported local inventory candidates:+A scheduled local job appends inventory telemetry to a separate `inventory_state.jsonl` file beside `runtime.jsonl`. It runs once when it is loaded (install, repair, reboot, package upgrade) and then every 6 hours, on every install in both modes: a LaunchAgent (`com.beacon.endpoint.inventory`) or LaunchDaemon on macOS, a `beacon-inventory.timer` under the user or system scope on Linux. Agent hooks no longer trigger inventory; an idle machine reports on the same schedule as a busy one.-- `inventory.heartbeat` records that Beacon checked local agent configuration inventory, including counts and a snapshot digest.-- `inventory.snapshot` records the current metadata-only inventory when the snapshot changed or when inventory is first initialized.+- `inventory.heartbeat` records that Beacon checked local agent configuration inventory, including counts and a snapshot digest. Every run writes one; it is the endpoint's liveness signal.+- `inventory.snapshot` records the current metadata-only inventory. It is written only when the snapshot digest changed since the last run.++A system-mode job runs as root and inventories the active console user's home. When nobody is logged in it still writes the heartbeat, with `user_scope.mode` set to `no_console_user`, and no snapshot. The scheduled scan covers user-level configuration only; project-scoped files (`.cursor/mcp.json`, `.claude/settings.json` in a repository) are reported by `beacon endpoint inventory` run from that directory, not by the job.By default, inventory snapshots include config file metadata, MCP server metadata, skill metadata, and hook config metadata across supported local runtimes. They do not include skill instruction bodies, MCP secret values, full environment values, full command arguments, or unrelated config content.-Set `include_contents` to opt the snapshot/heartbeat telemetry into capturing full definitions, matching the `--contents` CLI behavior. When enabled, `inventory.snapshot` events carry redacted, size-limited config/hook/skill `content` blocks and full MCP server `definition` blocks. Secret-looking values are redacted and bodies are truncated to `max_content_bytes` (64 KiB by default). This setting is off by default so the snapshot contract stays metadata-only unless an operator explicitly enables it.+Set `include_contents` to opt the snapshot telemetry into capturing full definitions, matching the `--contents` CLI behavior. When enabled, `inventory.snapshot` events carry redacted, size-limited config/hook/skill `content` blocks and full MCP server `definition` blocks. Secret-looking values are redacted and bodies are truncated to `max_content_bytes` (64 KiB by default). This setting is off by default so the snapshot contract stays metadata-only unless an operator explicitly enables it.-The heartbeat TTL and content capture are configured in the existing endpoint config file. Omit `runtimes` to scan all supported inventory runtimes, or set it when you intentionally want a narrower snapshot:+The job is configured in the existing endpoint config file. Omit `runtimes` to scan all supported inventory runtimes, or set it when you intentionally want a narrower snapshot. `enabled: false` removes the job on the next install, repair, or package upgrade and stops the writer; a `ttl_seconds` key written by older versions is ignored.```json title="~/.beacon/endpoint/config.json"{"inventory_heartbeat": {"enabled": true,- "ttl_seconds": 86400,"include_contents": false,"max_content_bytes": 65536}}```-For a manual smoke test, temporarily lower `ttl_seconds`, start a Cursor or Claude Code session with Beacon hooks installed, add a harmless test MCP server to `~/.cursor/mcp.json`, `.cursor/mcp.json`, `~/.claude.json`, or `.claude/settings.json`, then trigger another hook action. `inventory_state.jsonl` should contain an `inventory.heartbeat` event and, when the digest changes, an `inventory.snapshot` event with the new MCP server metadata under `raw.inventory.mcp_servers`. `runtime.jsonl` should remain limited to agent runtime activity.+`beacon endpoint status` prints an `Inventory heartbeat:` line with the interval, whether the job is loaded, and when it last wrote; `--json` carries the same in `inventory_heartbeat`. The hidden `beacon endpoint inventory install-daemon [--user|--system]` command re-reconciles the job with the config and loads it, which also fires a heartbeat at once; the package postinstall runs it on every upgrade.++For a manual smoke test, add a harmless test MCP server to `~/.cursor/mcp.json` or `~/.claude.json`, then run `beacon endpoint inventory heartbeat --scheduled` (or `sudo ... --system`). `inventory_state.jsonl` should gain an `inventory.heartbeat` event and, because the digest changed, an `inventory.snapshot` event with the new MCP server metadata under `raw.inventory.mcp_servers`. `runtime.jsonl` should remain limited to agent runtime activity. To watch the schedule itself, set `BEACON_INVENTORY_INTERVAL_SECONDS=60` before `install-daemon` and tail the file.## Flagsdiff --git a/docs/cli/endpoint-paths.mdx b/docs/cli/endpoint-paths.mdxindex c3f30bc6..748face6 100644--- a/docs/cli/endpoint-paths.mdx+++ b/docs/cli/endpoint-paths.mdx@@ -36,6 +36,8 @@ The collector runs under whichever service manager the host provides. On Linux,The Asymptote forwarder started by `beacon endpoint connect` is a second, resident service that runs Vector: `/Library/LaunchDaemons/com.beacon.endpoint.asymptote-forwarder.plist` or `~/Library/LaunchAgents/com.beacon.endpoint.asymptote-forwarder.plist` on macOS, `/etc/systemd/system/beacon-asymptote-forwarder.service` or `~/.config/systemd/user/beacon-asymptote-forwarder.service` on Linux. It is not offered in supervised mode, because nothing would restart it; run the [Asymptote pack](/cli/asymptote) under your own supervisor there.+The scheduled inventory job is a third, one-shot unit that `beacon endpoint install` writes in both modes and the package postinstall reconciles on every upgrade: `/Library/LaunchDaemons/com.beacon.endpoint.inventory.plist` or `~/Library/LaunchAgents/com.beacon.endpoint.inventory.plist` on macOS, `beacon-inventory.timer` plus `beacon-inventory.service` under `/etc/systemd/system` or `~/.config/systemd/user` on Linux. It writes `inventory_state.jsonl` and its `inventory-state.json` state file beside the runtime log. Like the forwarder it is not offered in supervised mode; run `beacon endpoint inventory heartbeat --scheduled` from your own scheduler there.+Windows has no unit file to point at: the service definition lives in the registry, so that is what `beacon endpoint status` reports where the other platforms report a path. And there is no counterpart to `systemctl --user` or launchd's per-user domain, so a Windows user-mode install always gets the supervised collector. See [Windows install](/platforms/windows#user-mode-install).A supervised collector is a plain background process tracked by a pidfile. It works, but nothing restarts it if it exits or when the machine reboots. `beacon endpoint status` says so explicitly rather than reporting the same health as a real service.diff --git a/docs/cli/endpoint-status.mdx b/docs/cli/endpoint-status.mdxindex d1d79a36..7d955230 100644--- a/docs/cli/endpoint-status.mdx+++ b/docs/cli/endpoint-status.mdx@@ -62,6 +62,7 @@ Status includes:- Destination configuration in JSON output, including Splunk HEC or Falcon LogScale HEC endpoint, index, source, and sourcetype when configured- Last Beacon event in the runtime log, when present- Asymptote managed ingest: whether this endpoint is connected, the organization and device id, forwarder service state, whether the device key is still accepted by the ingest service (`valid`, `revoked`, or `unknown` when offline), and the disk buffer size. In `--json` this is the `managed_ingest` object; the device key itself is never included. The line reports the connection for the install mode you asked about (`--user` or `--system`), even when the collector view switches to the system install because it holds the OTLP ports.+- Inventory heartbeat: whether the scheduled inventory job is enabled and loaded, its interval, and when it last wrote. In `--json` this is the `inventory_heartbeat` object (`enabled`, `scheduled`, `interval`, `job`, `last_emitted_at`, `log_path`), reported for the requested install mode like managed ingest.When Splunk HEC is configured, `--json` includes a `destinations.splunk_hec` object with `configured: true` and the non-secret destination settings. When Falcon LogScale HEC is configured, `--json` includes `destinations.falcon_hec` with the same non-secret fields. HEC tokens are not printed. File-based destinations such as Wazuh, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, and AWS S3 validate against the configured runtime log path and their generated shipper configuration.diff --git a/docs/cli/hooks.mdx b/docs/cli/hooks.mdxindex 6accab25..75587003 100644--- a/docs/cli/hooks.mdx+++ b/docs/cli/hooks.mdx@@ -73,7 +73,7 @@ Beacon validates the embedded `beacon-hooks` binary before writing hook configurbeacon endpoint hooks install --harness cursor```-The hook adapter records local endpoint events for sessions, prompt submission, tool use, command execution, MCP-like tool activity, approval decisions, permissions, diffs, and file edits where the selected runtime exposes those hook payloads. Antigravity hooks cover `PreInvocation`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostInvocation`, and `Stop`. Claude Code hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, `SubagentStart`, `SubagentStop`, `PermissionRequest`, and `SessionEnd`. Codex CLI uses `SessionStart` for metadata-only OS-user context and inventory, plus `UserPromptSubmit` for inventory heartbeats; Codex prompt, tool, and token telemetry still comes from its local OpenTelemetry export path. Devin CLI hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PermissionRequest`, `PostToolUse`, `Stop`, and `SessionEnd`. Devin Desktop hooks use Cascade/Windsurf payloads for prompt submission, file writes, command execution, MCP tool use, and file reads. Factory hooks cover `SessionStart`, `UserPromptSubmit`, `PostToolUse` for write/edit/create operations, `Stop`, and `SessionEnd`. Grok Build hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, and `SessionEnd`. Hermes Agent hooks cover session lifecycle, `pre_llm_call`, `pre_tool_call`, `post_tool_call`, approval request and response, and subagent stop events. OpenCode hooks use Beacon's managed local plugin to forward `chat.message`, session, command, permission, diff, and error events. Cline hooks use Beacon's managed local plugin to forward `beforeRun`, `beforeTool`, `afterTool`, and `afterRun`, and also accept Cline's file-based hook names (`TaskStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`) so one adapter serves both of Cline's hook surfaces.+The hook adapter records local endpoint events for sessions, prompt submission, tool use, command execution, MCP-like tool activity, approval decisions, permissions, diffs, and file edits where the selected runtime exposes those hook payloads. Antigravity hooks cover `PreInvocation`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostInvocation`, and `Stop`. Claude Code hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, `SubagentStart`, `SubagentStop`, `PermissionRequest`, and `SessionEnd`. Codex CLI uses `SessionStart` for metadata-only OS-user context; Codex prompt, tool, and token telemetry still comes from its local OpenTelemetry export path, and inventory comes from the scheduled inventory job rather than a hook. Devin CLI hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PermissionRequest`, `PostToolUse`, `Stop`, and `SessionEnd`. Devin Desktop hooks use Cascade/Windsurf payloads for prompt submission, file writes, command execution, MCP tool use, and file reads. Factory hooks cover `SessionStart`, `UserPromptSubmit`, `PostToolUse` for write/edit/create operations, `Stop`, and `SessionEnd`. Grok Build hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, and `SessionEnd`. Hermes Agent hooks cover session lifecycle, `pre_llm_call`, `pre_tool_call`, `post_tool_call`, approval request and response, and subagent stop events. OpenCode hooks use Beacon's managed local plugin to forward `chat.message`, session, command, permission, diff, and error events. Cline hooks use Beacon's managed local plugin to forward `beforeRun`, `beforeTool`, `afterTool`, and `afterRun`, and also accept Cline's file-based hook names (`TaskStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`) so one adapter serves both of Cline's hook surfaces.### Examples@@ -95,13 +95,13 @@ Install Claude Code hooks at the user level:beacon endpoint hooks install --harness claude```-Install Codex CLI inventory hooks at the user level:+Install Codex CLI session-context hooks at the user level:-```bash title="Install Codex CLI inventory hooks at the user level"+```bash title="Install Codex CLI session-context hooks at the user level"beacon endpoint hooks install --harness codex```-A successful user-level install prints `Codex CLI inventory hooks installed: /Users/you/.codex/hooks.json`.+A successful user-level install prints `Codex CLI hooks installed: /Users/you/.codex/hooks.json`.Install Antigravity hooks at the project level:@@ -444,9 +444,9 @@ Beacon's `PreToolUse` hook answers with an empty object on purpose. Qwen reads `## Codex CLI troubleshooting-Beacon writes Codex CLI endpoint hooks to `~/.codex/hooks.json` for user-level installs or `./.codex/hooks.json` for project-level installs. `SessionStart` writes local OS-user/session context and triggers inventory; `UserPromptSubmit` refreshes inventory. These metadata-only hooks do not replace the Codex OTLP runtime path for prompt, tool, or token events.+Beacon writes Codex CLI endpoint hooks to `~/.codex/hooks.json` for user-level installs or `./.codex/hooks.json` for project-level installs. `SessionStart` writes local OS-user/session context. This metadata-only hook does not replace the Codex OTLP runtime path for prompt, tool, or token events, and it no longer triggers inventory: that is the scheduled inventory job's work, in every mode, whether or not Codex runs.-If Codex inventory updates are missing, check the selected level, confirm the hook file contains commands with `--platform codex`, and restart Codex CLI so new sessions pick up the updated hook configuration.+If Codex session context is missing, check the selected level, confirm the hook file contains a command with `--platform codex`, and restart Codex CLI so new sessions pick up the updated hook configuration.## OpenCode troubleshootingdiff --git a/docs/guides/jamf-anthropic-openai-cursor-mdm.mdx b/docs/guides/jamf-anthropic-openai-cursor-mdm.mdxindex 1a7e8375..fde41cc1 100644--- a/docs/guides/jamf-anthropic-openai-cursor-mdm.mdx+++ b/docs/guides/jamf-anthropic-openai-cursor-mdm.mdx@@ -322,7 +322,7 @@ endpoint = "http://127.0.0.1:4317"endpoint = "http://127.0.0.1:4317"```-Preserve existing non-OTel Codex settings and ensure the final file is owned by the user. This step is required for Codex runtime telemetry. Optional Codex hooks can be installed separately when you want Codex sessions to trigger inventory heartbeats.+Preserve existing non-OTel Codex settings and ensure the final file is owned by the user. This step is required for Codex runtime telemetry. Optional Codex hooks can be installed separately for OS-user session context; inventory comes from the scheduled inventory job regardless.## Validate a deployed Macdiff --git a/docs/mdm/jamf.mdx b/docs/mdm/jamf.mdxindex 0ffa77cf..e97b8463 100644--- a/docs/mdm/jamf.mdx+++ b/docs/mdm/jamf.mdx@@ -192,53 +192,30 @@ Beacon-managed directories, then pass only its path throughIf validation succeeds but events remain stale, confirm the configured harnesses match the agent harnesses installed or configured for the device and that the local collector ports are not in use by another process. If GitHub Copilot CLI events are missing, confirm Copilot's launch environment includes `COPILOT_OTEL_ENABLED=true` and a localhost OTLP HTTP endpoint. If Cline, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, or OpenCode hook events are missing, confirm the separate user-context hook policy has run for the logged-in user. For OpenClaw Gateway, confirm the `diagnostics-otel` plugin is enabled and pointed at Beacon's OTLP HTTP receiver.</Accordion><Accordion title="Agent inventory heartbeats are stale">- System-mode inventory heartbeats are triggered by user-level runtime hooks,- then written to `/var/log/beacon-agent/inventory_state.jsonl` and- `/var/log/beacon-agent/inventory-state.json`. In managed environments where- normal users cannot write system log files, grant the active console user- write access through Jamf or your MDM policy.+ System-mode inventory heartbeats are written by a scheduled root job,+ `com.beacon.endpoint.inventory`, every 6 hours and once at load, to+ `/var/log/beacon-agent/inventory_state.jsonl`. The package postinstall+ installs and loads it on every upgrade; user hooks no longer trigger+ inventory, so no user needs write access to the system log files and the+ older chown/chmod remediation is not needed.- A Jamf remediation can prepare the Beacon inventory files before refreshing- hooks:+ Confirm the job is loaded and when it last wrote:```bash- CONSOLE_USER="$(stat -f '%Su' /dev/console)"- [ -n "$CONSOLE_USER" ] && [ "$CONSOLE_USER" != "root" ] && [ "$CONSOLE_USER" != "loginwindow" ] || exit 0-- mkdir -p /var/log/beacon-agent- touch /var/log/beacon-agent/inventory_state.jsonl \- /var/log/beacon-agent/inventory_state.jsonl.lock \- /var/log/beacon-agent/inventory-state.json \- /var/log/beacon-agent/inventory-state.json.lock-- chown "$CONSOLE_USER":wheel /var/log/beacon-agent/inventory_state.jsonl \- /var/log/beacon-agent/inventory_state.jsonl.lock \- /var/log/beacon-agent/inventory-state.json \- /var/log/beacon-agent/inventory-state.json.lock-- chmod 664 /var/log/beacon-agent/inventory_state.jsonl \- /var/log/beacon-agent/inventory_state.jsonl.lock \- /var/log/beacon-agent/inventory-state.json \- /var/log/beacon-agent/inventory-state.json.lock+ sudo launchctl print system/com.beacon.endpoint.inventory | grep -E 'state|last exit'+ sudo /opt/beacon/bin/beacon endpoint status --system | grep 'Inventory heartbeat'+ sudo tail -n 2 /var/log/beacon-agent/inventory_state.jsonl```- After applying the remediation, refresh the user's Beacon hooks:+ If the job is missing, reconcile it (this also writes a heartbeat at once):```bash- HOME_DIR="$(dscl . -read "/Users/$CONSOLE_USER" NFSHomeDirectory | awk '{print $2}')"- sudo -u "$CONSOLE_USER" HOME="$HOME_DIR" USER="$CONSOLE_USER" LOGNAME="$CONSOLE_USER" \- /opt/beacon/bin/beacon endpoint hooks install \- --harness claude,codex,cursor \- --level user \- --log-path /var/log/beacon-agent/runtime.jsonl+ sudo /opt/beacon/bin/beacon endpoint inventory install-daemon --system```- Trigger a small Claude Code, Codex CLI, or Cursor action and confirm the- inventory log receives a hook-triggered heartbeat:-- ```bash- sudo tail -n 5 /var/log/beacon-agent/inventory_state.jsonl- ```+ The job inventories the active console user's home. A machine with nobody+ logged in still heartbeats, with `user_scope.mode` set to `no_console_user`,+ and writes a snapshot the next time a user is at the console.</Accordion><Accordion title="Configured harnesses are wrong">Check Jamf parameter 4 on the install policy. The default is `claude,codex`; set the parameter explicitly when you want a narrower or broader harness list. Include `gemini` when Gemini CLI telemetry should be managed. Do not include GitHub Copilot CLI in this list; manage Copilot's OTel environment separately.diff --git a/docs/runtimes/codex-cli.mdx b/docs/runtimes/codex-cli.mdxindex e6874d9d..13757d72 100644--- a/docs/runtimes/codex-cli.mdx+++ b/docs/runtimes/codex-cli.mdx@@ -5,7 +5,7 @@ description: "Asymptote support details for Codex CLI endpoint telemetry"## Runtime overview-Asymptote supports Codex CLI runtime telemetry through local OTLP logs and one selective usage-bearing turn trace. A lightweight SessionStart hook records the local OS user for token attribution and also triggers endpoint inventory heartbeats.+Asymptote supports Codex CLI runtime telemetry through local OTLP logs and one selective usage-bearing turn trace. A lightweight SessionStart hook records the local OS user for token attribution.## Prerequisites@@ -19,7 +19,7 @@ Before enabling Codex CLI telemetry, make sure:## Collection path-Codex CLI exports local OpenTelemetry logs and traces to Asymptote's localhost collector. Asymptote uses Codex semantic logs for session, prompt, approval, and tool-result events. For tokens it keeps only the completed `session_task.turn` span carrying `thread.id`, `turn.id`, model, and usage; hundreds of transport and internal spans remain suppressed. The SessionStart hook writes a metadata-only `session.context` event and refreshes `inventory_state.jsonl`; it never reads transcript content.+Codex CLI exports local OpenTelemetry logs and traces to Asymptote's localhost collector. Asymptote uses Codex semantic logs for session, prompt, approval, and tool-result events. For tokens it keeps only the completed `session_task.turn` span carrying `thread.id`, `turn.id`, model, and usage; hundreds of transport and internal spans remain suppressed. The SessionStart hook writes a metadata-only `session.context` event; it never reads transcript content. Inventory is written by the scheduled inventory job, not by this hook.Use `--include-codex-spans` during install or repair only when you need every raw Codex span for troubleshooting. It is not required for token attribution.@@ -82,7 +82,7 @@ them independently, run:beacon endpoint hooks install --harness codex```-The hook installer writes the metadata-only session context hook plus inventory heartbeats to `~/.codex/hooks.json` or project `.codex/hooks.json`, depending on `--level`. A successful user-level install prints:+The hook installer writes the metadata-only session context hook to `~/.codex/hooks.json` or project `.codex/hooks.json`, depending on `--level`. A successful user-level install prints:```textCodex CLI endpoint hooks installed: /Users/you/.codex/hooks.jsondiff --git a/docs/runtimes/index.mdx b/docs/runtimes/index.mdxindex 58a9c4d6..7019b49e 100644--- a/docs/runtimes/index.mdx+++ b/docs/runtimes/index.mdx@@ -116,7 +116,7 @@ MDM assets, meaning Jamf Pro Extension Attributes, Fleet osquery queries, and Ri| Factory Droid | Configure launch environment with `OTEL_TELEMETRY_ENDPOINT=http://127.0.0.1:4318`. Asymptote discovers the runtime and validates the endpoint but does not edit shell profiles or launch environments. || OpenClaw Gateway | Configure OTLP in OpenClaw. Use [`beacon endpoint integrations openclaw`](/cli/openclaw) to print local Gateway settings and validate events. |-Install hooks separately in the logged-in user's context when you need richer hook telemetry or inventory heartbeat triggers. This applies to Antigravity CLI, Claude Code, Cline, Codex CLI inventory hooks, Cursor, Devin CLI, Devin Desktop, Factory Droid, Grok Build, Hermes Agent, goose, Muse Code, Oh My Pi, OpenCode, OpenHands, Pi, Qwen Code, and the optional VS Code hooks. fx is the exception with no hooks to install: schedule [`beacon endpoint fx sync`](/cli/endpoint-fx) instead.+Install hooks separately in the logged-in user's context when you need richer hook telemetry. This applies to Antigravity CLI, Claude Code, Cline, Codex CLI session-context hooks, Cursor, Devin CLI, Devin Desktop, Factory Droid, Grok Build, Hermes Agent, goose, Muse Code, Oh My Pi, OpenCode, OpenHands, Pi, Qwen Code, and the optional VS Code hooks. fx is the exception with no hooks to install: schedule [`beacon endpoint fx sync`](/cli/endpoint-fx) instead.If a system collector is running while the CLI is reading the default per-user log, `beacon endpoint status` and the local dashboard surface a runtime-log source warning so you can tell where OTLP events are being written.diff --git a/docs/security/data-inventory.mdx b/docs/security/data-inventory.mdxindex 034026f9..dfb21117 100644--- a/docs/security/data-inventory.mdx+++ b/docs/security/data-inventory.mdx@@ -54,10 +54,10 @@ By default, inventory is metadata- and hash-only. Beacon hashes config, hook, anOperators can opt into capturing full definitions with the `--contents` flag (CLI) or the `include_contents` config setting (snapshot telemetry). When enabled, configs, hooks, and skills gain a redacted `content` block and MCP servers gain a full `definition` block. Captured contents always pass through local secret redaction and a per-file size cap (64 KiB by default, configurable with `max_content_bytes`). Redaction replaces values under keys matching `TOKEN`, `SECRET`, `PASSWORD`, `KEY`, `AUTH`, or `CREDENTIAL` with `***REDACTED***`.-Inventory heartbeat telemetry uses a separate local JSONL file, `inventory_state.jsonl`, so `runtime.jsonl` stays scoped to agent runtime activity. Normal hook execution can periodically write:+Inventory heartbeat telemetry uses a separate local JSONL file, `inventory_state.jsonl`, so `runtime.jsonl` stays scoped to agent runtime activity. A scheduled local job (every 6 hours, and once at install, boot, or upgrade) writes:- `inventory.heartbeat`, a small event showing that Beacon checked local agent configuration inventory and recording counts plus a snapshot digest.-- `inventory.snapshot`, a snapshot written when the digest changes or inventory is first initialized. Metadata-only unless `include_contents` is enabled.+- `inventory.snapshot`, a snapshot written when the digest changes or inventory is first initialized. Metadata-only unless `include_contents` is enabled. Scheduled snapshots cover user-level configuration; project-scoped files appear only in `beacon endpoint inventory` output.By default, snapshots include config-file metadata, MCP server metadata, skill metadata, and hook config metadata across supported local runtimes. They do not include skill instruction bodies, MCP secret values, full environment values, full command arguments, or unrelated config content. When `include_contents` is enabled, snapshots additionally carry redacted, size-limited `content` and `definition` blocks as described above.diff --git a/packaging/macos/README.md b/packaging/macos/README.mdindex bdea8c6c..51baba1f 100644--- a/packaging/macos/README.md+++ b/packaging/macos/README.md@@ -34,7 +34,9 @@ The endpoint install creates system configuration and runtime state:/Library/Application Support/Beacon/Endpoint/config.json/Library/Application Support/Beacon/Endpoint/otelcol.yaml/Library/LaunchDaemons/com.beacon.endpoint.collector.plist+/Library/LaunchDaemons/com.beacon.endpoint.inventory.plist/var/log/beacon-agent/runtime.jsonl+/var/log/beacon-agent/inventory_state.jsonl```Connecting a system-mode endpoint to Asymptote managed ingest@@ -434,7 +436,8 @@ Use `/opt/beacon/jamf/claude/common/repair-hooks.sh` when a Jamf policyneeds only to repair the system endpoint, prepare`/var/log/beacon-agent/runtime.jsonl`,`/var/log/beacon-agent/inventory_state.jsonl`, and the inventory heartbeat state-file for user-run hooks, reinstall Claude Code hooks for the interactive console+file (inventory is written by the root-scheduled `com.beacon.endpoint.inventory` job now, so+user-run hooks no longer need those files writable), reinstall Claude Code hooks for the interactive consoleuser, and run a manual Claude hook smoke test. Newer packages perform theconsole-user native OTLP repair in postinstall; Jamf scripts should not need tohand-edit Claude settings JSON.diff --git a/packaging/macos/smoke-endpoint.sh b/packaging/macos/smoke-endpoint.shindex 231081d0..3adabfd5 100755--- a/packaging/macos/smoke-endpoint.sh+++ b/packaging/macos/smoke-endpoint.sh@@ -70,6 +70,14 @@ cat "$INSTALL_OUTPUT"test -f "$HOME_DIR/.beacon/endpoint/config.json"test -f "$HOME_DIR/.beacon/endpoint/otelcol.yaml"test -f "$HOME_DIR/Library/LaunchAgents/com.beacon.endpoint.collector.user.plist"+# The scheduled inventory job is written by install in user mode too (and, with --no-start, left+# unloaded), pointing the job at this install's runtime log.+INVENTORY_PLIST="$HOME_DIR/Library/LaunchAgents/com.beacon.endpoint.inventory.plist"+test -f "$INVENTORY_PLIST"+if ! grep -q -- "--scheduled" "$INVENTORY_PLIST" || ! grep -q -- "$LOG_PATH" "$INVENTORY_PLIST"; then+ echo "scheduled inventory job must invoke the heartbeat with --scheduled and this install's log path" >&2+ exit 1+fitest -f "$LOG_PATH"# A non-interactive install must never ask for an email or record an onboarding@@ -88,7 +96,13 @@ if [ -e "$HOME_DIR/.beacon/profile.json" ]; thenfiecho "Checking endpoint status..."-run_beacon endpoint status --user --log-path "$LOG_PATH" >/dev/null+STATUS_OUTPUT="$TMP_DIR/status.txt"+run_beacon endpoint status --user --log-path "$LOG_PATH" >"$STATUS_OUTPUT"+if ! grep -q '^Inventory heartbeat: scheduled every' "$STATUS_OUTPUT"; then+ echo "endpoint status must report the scheduled inventory job" >&2+ cat "$STATUS_OUTPUT" >&2+ exit 1+fiecho "Writing Wazuh validation event..."run_beacon endpoint wazuh validate --user --log-path "$LOG_PATH" >/dev/null@@ -183,6 +197,11 @@ if [ -f "$PLIST" ]; thenexit 1fiecho "ok: the launchd plist was removed"+if [ -f "$INVENTORY_PLIST" ]; then+ echo "scheduled inventory job plist survived uninstall: $INVENTORY_PLIST" >&2+ exit 1+fi+echo "ok: the scheduled inventory job plist was removed"# Deliberately not asked of launchd. This install passes --no-start into a temporary HOME, so no job is# ever bootstrapped -- which means any answer launchctl gave would be about some *other* install of the