Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
725494d
fix(daemon): answer the previous plugin protocol instead of denying
chhhee10 Nov 18, 2026
621ec67
feat(update): restart running Hermes and OpenClaw gateways when idle
chhhee10 Nov 18, 2026
5aa21fb
fix(collector): leave a replaced key's refusals for the new key; spli…
chhhee10 Nov 18, 2026
6632757
fix(status): point cloud-managed machines at Cloud; count Jev-only de…
chhhee10 Nov 18, 2026
6e48314
docs(changelog): link the customer fixes to #1023
chhhee10 Nov 18, 2026
32e5fd5
fix(daemon): survive a Node upgrade, transient accept errors and lane…
chhhee10 Nov 18, 2026
5ec5267
feat(daemon): timestamped logs in ~/.failproofai/logs/daemon.log on e…
chhhee10 Nov 18, 2026
ec2464c
feat(daemon): report daemon/CLI version, OS and arch on every policy …
chhhee10 Nov 18, 2026
2605787
feat(collector): join hook events to their tool call; stamp hook star…
chhhee10 Nov 18, 2026
2f7b56f
fix(protocol): never answer an old client where agent-targeted polici…
chhhee10 Nov 18, 2026
ba8c83e
fix(collector): park only a refused oversized event; re-check a repla…
chhhee10 Nov 18, 2026
dd44bd0
fix: address PR #1023 review (pr-autopilot F2/F3, CodeRabbit)
chhhee10 Nov 18, 2026
1d71e7a
fix: second review round on #1023 (CI isolation, CodeRabbit)
chhhee10 Nov 18, 2026
298756b
feat(daemon): send the daemon log to Cloud only when something is wrong
chhhee10 Nov 18, 2026
5a8c5b3
fix(daemon): make every uploaded log entry valid on the wire
chhhee10 Nov 18, 2026
e7022e7
fix: what a live end-to-end run found (outage retries, roll-up time, …
chhhee10 Nov 18, 2026
041ea54
fix(collector): retry what an outage parked on an idle machine too
chhhee10 Nov 18, 2026
b3e4dd2
fix: review round 4 on #1023 (F2, F4, F5, F6)
chhhee10 Nov 18, 2026
7822d6c
docs(changelog): the end-to-end and review-round-4 fixes on #1023
chhhee10 Nov 18, 2026
9d98cec
fix: review round 5 on #1023 (FIFO marker, legacy roll-ups, backlog d…
chhhee10 Nov 18, 2026
3a117fb
fix: OpenClaw hooks name their tool call; a long outage reads as stuck
chhhee10 Nov 19, 2026
f5e0844
feat(config): the first setup on a new version finishes the upgrade
chhhee10 Nov 19, 2026
a3682cb
fix(config): one line, in update's words, instead of a second report
chhhee10 Nov 19, 2026
107881c
fix(config): setup no longer tells you to run update before it update…
chhhee10 Nov 19, 2026
f5cda52
fix(daemon): a policy stuck in a loop no longer wedges every tool call
chhhee10 Nov 19, 2026
3ace0d6
fix(daemon): a warning logged during a log upload is kept for the nex…
chhhee10 Nov 19, 2026
783817a
fix(update): the gateway restart log is owner-only
chhhee10 Nov 19, 2026
c4f8290
fix(config): a profile added after setup has its gateway restarted
chhhee10 Nov 19, 2026
bfe6b7b
chore: bump to 1.0.16-beta.1
chhhee10 Nov 19, 2026
ce92117
fix(policies): a policy written with require() loads under Node
chhhee10 Nov 20, 2026
4a4999a
feat(daemon): log an error when hook data stops while the rest of the…
chhhee10 Nov 20, 2026
57e2fbf
test(daemon): the agent-selection e2e counts the hook-watch task
chhhee10 Nov 20, 2026
cb336a1
fix: review findings F9, F10 and F12 on #1023
chhhee10 Nov 20, 2026
0884dfe
feat(daemon): send no daemon log while the org has troubleshooting off
chhhee10 Nov 20, 2026
94f6f28
chore(deps): the SDK's CrewAI extra no longer locks chromadb
chhhee10 Nov 20, 2026
fa66d66
fix: never upload logs from while troubleshooting was off; load polic…
chhhee10 Nov 20, 2026
50f4596
fix: keep troubleshooting off across restarts; CommonJS retry marks o…
chhhee10 Nov 21, 2026
6e0bd77
fix: CommonJS policies requiring a local helper load on Node before 2…
chhhee10 Nov 21, 2026
8a5628a
docs(changelog): point entries at #1033, which replaces #1023
chhhee10 Nov 23, 2026
c26098a
Merge remote-tracking branch 'origin/main' into fix/customer-issues
chhhee10 Nov 23, 2026
e433853
chore(release): prepare 1.0.16 stable
chhhee10 Nov 23, 2026
f15dd5a
Merge origin/main into fix/customer-issues; cut 1.0.17 stable
chhhee10 Nov 24, 2026
7ca9a54
fix(daemon): apply machineLogs/logRequest only from an accepted desir…
chhhee10 Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,38 @@
# Changelog

## 1.0.17-beta.0 — 2026-11-24
## 1.0.17 — 2026-11-24

### Fixes

- Release workflows now open the version-bump pull request themselves, using the job's own token, when the repository lets GitHub Actions create pull requests. When it does not, the run prints the pre-filled link as a warning and the release still succeeds. A re-run reuses an open bump pull request instead of opening a second one (#1052)
- The daemon sends no daemon log while the org has troubleshooting off: when Cloud's policy poll says `machineLogs: false` it drops what was pending (an open log request included) and queues nothing until it is back on, and keeps nothing for context while it is. The off state is kept beside daemon.log, so a daemon restarted while it is off (cleanly or not) sends nothing before its first poll. Turning it back on sets a floor (kept there too): no later upload carries a line older than it, so an incident or a requested tail never delivers what was logged while it was off. A Cloud that sends no such key means on, as before (#1033)
- The daemon logs an ERROR when hook data stops reaching Cloud while the rest of the collector keeps working: an agent whose sessions show tool calls in the last 10 minutes with none of them reaching failproofai's hooks (its hooks not installed or not firing, so those calls ran unchecked), hook calls answered with nothing recorded by the hook activity source, hook batches waiting 15 minutes while other events deliver, or hook batches Cloud refused. Only tool calls an agent is making now count, so the backfill after setup never raises it. The line reaches Cloud with the daemon's error roll-up. A problem clears only on evidence it is fixed (a hook call from that agent, events from the hook source, the stuck batch gone), never because traffic fell, and its clearing is logged once. Checked every 5 minutes, repeated hourly while it lasts, and not when hook collection is off (#1033)
- A policy file written with `require()` loads and enforces under Node. Every policy's temporary copy was written as `.mjs`, where Node defines no `require`, `module` or `exports`, so a CommonJS policy (or an ES module policy importing a `module.exports` helper) failed to load and the calls it should have denied were allowed. A CommonJS file's copy is now `.cjs`; which a file is gets decided the way Node decides an ambiguous `.js` file, by compiling it as CommonJS, and only for a file Node itself refused to load as an ES module for being CommonJS, one file at a time: a file Node loaded as an ES module, in a mixed graph included, is never reinterpreted, whatever its comments or strings say. On Node before 22.12, which cannot `require()` an ES module, a CommonJS policy's required `module.exports` helper is converted the same way, from the file Node's `ERR_REQUIRE_ESM` names. A new e2e test runs the bundled CLI under `node`; the rest of the suite runs under Bun, which hid this (#1033)
- The daemon answers the previous plugin protocol, and clients re-ask an older daemon in its version, so a Hermes or OpenClaw gateway still running the plugin it loaded before an upgrade keeps getting real verdicts instead of denying every call; where the Cloud deployment targets policies at agents, which a request naming no agent would escape, it still fails closed (#1033)
- `failproofai update` restarts running Hermes and OpenClaw gateways through their own drain-aware restart (after in-flight work finishes) so they load the updated plugin; only service-managed gateways are touched, and `--no-restart` opts out (#1033)
- A batch refused with a key the machine has since replaced (the seconds after a reconnect) is left for the new key instead of being parked as a refusal, so `config --status` no longer reports "the cloud is refusing this machine's key" right after a successful connect (#1033)
- A batch the server refuses as too large (413) is split in half and re-sent until each piece fits, instead of being parked for good; a single event still refused is parked on its own and the rest of the batch is delivered (#1033)
- `config --status` counts Cloud Jev-only deployments in its policies row; it showed "None installed" beside a deployment the line under it called enforcing (#1033)
- A machine that pulls policies from Cloud is pointed at Cloud, not at installing packs: `config --status` says "None deployed from Cloud" with the dashboard as its fix, and the `failproofai policies` empty state says "Deploy from Cloud" (#1033)
- The "no pack is installed" warning is logged once per process instead of on every hook call, which buried the daemon log (#1033)
- The daemon service saves a stable link to Node when PATH has one (Homebrew's `/opt/homebrew/bin/node`, not the `Cellar/<version>` path `brew upgrade node` deletes), and `failproofai update` rewrites a service whose saved Node or failproofai path is gone instead of reporting nothing to update; the daemon log names that cause and the fix when the worker cannot start (#1033)
- A policy stuck in a loop no longer leaves every tool call on the machine waiting 30 s and then denied until the daemon restarts: the daemon replaces a worker that let a request time out, and reaps what a dead worker left in its process group (#1033)
- The daemon no longer exits on a transient `accept()` failure (out of file descriptors, an aborted connection), which left every hook denied until the service manager restarted it (#1033)
- The collector manager and cloud policy sync restart after a panic instead of stopping silently while the daemon keeps answering hooks (#1033)
- A hook client that stopped waiting before its verdict was ready is logged as that, with how long the evaluation took, instead of macOS's bare "Invalid argument (os error 22)" (#1033)
- failproofaid writes its log to `~/.failproofai/logs/daemon.log` on every OS (owner-only, 10 MB, 3 kept), as well as to stderr as before (on macOS stderr keeps only warnings and errors, since launchd's file is never rotated); every line carries a timestamp and level (its untimestamped `[failproofaid]` lines are now `tracing` events), and on macOS launchd's `failproofaid.err.log`, which nothing rotated, is bounded at startup (#1033)
- failproofaid tells FailproofAI Cloud what each machine runs: its policy poll carries `daemonVersion`, `cliVersion`, `os` and `arch` (optional parameters a server that predates them ignores), and every Cloud and ingest request sends `User-Agent: failproofaid/<version>` (#1033)
- Hook events carry the agent's own `tool_call_id` (Claude, Devin, Factory, Pi, Hermes, OpenClaw), the field the transcript events already use and Cloud stores in its own column, so a hook joins the tool call it governed instead of being placed beside it by timestamp; and a hook's start is stamped when it arrived, not when its evaluation ended. Rows written before this convert exactly as before (#1033)
- failproofaid sends its log to FailproofAI Cloud only when something is wrong: one roll-up of distinct warnings and errors (repeats counted, at most every 5 minutes), the last 5 minutes of log around an error or after a run that ended without a clean shutdown (at most one per 15 minutes), and the log tail when an operator asks for it from Cloud; secrets are redacted with the collector's rules and the home directory and machine token scrubbed, worker and audit output is sent only when an operator asks, a server without the route is left alone for a day, and `FAILPROOFAI_NO_LOG_UPLOAD=1` turns it off (#1033)
- Batches an outage parked are retried as soon as the server accepts a batch again (or, on an idle machine, within one 5-minute probe) instead of at the hourly pass, and `config --status` counts them as queued rather than "nothing queued"; a long outage reads as stuck ("N batches queued, oldest …, last delivered …") instead of "Healthy", since its batches sit in the parked queue rather than the spool (#1033)
- Allow roll-ups (the default `decisions` verbosity) are stamped when their first hook arrived instead of at the top of their minute, which put them before the tool calls they covered, and name the `tool_call_ids` they cover (#1033)
- Setup's summary on a Cloud-managed machine says "Deploy from Cloud" instead of pointing at installing a pack (#1033)
- The first `failproofai config` on a new version (a fresh install, or the first after `npm i -g failproofai`) finishes the upgrade the way `failproofai update` does: it migrates Hermes profiles and restarts running, service-managed Hermes and OpenClaw gateways so they load the plugin now on disk. A later setup that plugs in a profile created since restarts that profile's gateway. Setup used to leave a gateway that was already running on the plugin it loaded before, or with none, until someone ran `update` (#1033)
- A desired-state response the daemon refuses (an unknown `schemaVersion`, or a payload that does not decode) no longer applies its `machineLogs` or `logRequest` first: it used to clear an org's troubleshooting-off and start a log upload on the way to being rejected; the last valid answer now stands (#1033)

### Dependencies

- `crewai` 1.15.42 → 1.15.44 in the Python SDK's dev/test lockfile (#1033)

## 1.0.16-beta.0 — 2026-11-24

Expand Down
23 changes: 15 additions & 8 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@ only a marked copy or a link into a FailproofAI `hermes-plugin/`, refuses anythi
else with the same name, and uses the `yaml` package's comment-preserving
`Document` API for config changes. `failproofai update` migrates profiles already
using FailproofAI (legacy shell hooks or a copy) to the link, gated on the daemon
answering `policyEvaluation`; legacy shell hooks never run for Hermes cron jobs.
answering `policyEvaluation`; legacy shell hooks never run for Hermes cron jobs. It then
restarts each running gateway (Hermes and OpenClaw) through the host's own drain-aware
restart (`hermes gateway restart`, `openclaw gateway restart --safe`) so it loads the
updated plugin — a gateway keeps the plugin it imported at start. Only a service-managed
gateway is touched: without a service, `hermes gateway restart` runs the new gateway in the
caller's foreground (`src/hooks/gateway-restart.ts`; `update --no-restart` opts out).

Settings file paths:

Expand Down Expand Up @@ -909,13 +914,15 @@ in-process fallback on that path: a second policy engine reachable by breaking t
is not a guarantee, and a machine where stopping one service silently disables every
guardrail is not a guarded machine.

The mismatch case denies with a message naming the version and `failproofai update`,
because the remedy differs from "the daemon is down" and that difference is the whole
value of telling them apart. The accepted cost: both sides hardcode `PROTOCOL_VERSION`,
so the first time it is bumped a machine whose CLI updated via npm before its daemon did
denies until `failproofai update` runs. `publish.yml` ships both from one commit and
`daemonVersionSkew()` hints on every CLI command, so the window is bounded and announces
itself.
A version mismatch outside the supported range denies with a message naming the version
and `failproofai update`, because the remedy differs from "the daemon is down". Inside the
range it does not deny: the daemon answers every version from `MIN_PROTOCOL_VERSION` to
`PROTOCOL_VERSION` in the client's own version, and a client facing an older daemon asks
again in the daemon's version (crates/PROTOCOL.md). This was strict until 1.0.15: a Hermes
gateway still holding the v1 plugin it loaded before an upgrade was refused by the v2
daemon, and every Slack/Telegram tool call denied until the gateway was restarted. A
request older than a field is read without it — a v1 request is evaluated with its profile
unknown — so compatibility never widens what a scoped deployment applies to.

**In-process evaluation still exists**, reachable only when `daemonConfigured` is false —
which means the machine is not yet set up. No hooks are installed then either, so
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "3"
members = ["crates/*"]

[workspace.package]
version = "1.0.17-beta.0"
version = "1.0.17"
edition = "2024"
license-file = "LICENSE"
repository = "https://github.com/FailproofAI/failproofai"
Loading
Loading