Skip to content

FailproofAI 1.0.17

Latest

Choose a tag to compare

@NiveditJain NiveditJain released this 24 Nov 11:16
· 9 commits to main since this release
e9e978b

failproofai 1.0.17

This release keeps gateways enforcing through an upgrade, stops a stuck policy from blocking every tool call, makes CommonJS policies load under Node, and lets failproofai tell you, and FailproofAI Cloud, when something on the machine goes wrong. That includes when an agent's tool calls stop reaching its hooks. Sending daemon logs to Cloud follows your organization's troubleshooting setting, and nothing logged while it was off is ever sent.

Fixes

Enforcement

  • Gateways keep enforcing after an upgrade. A Hermes or OpenClaw gateway keeps the plugin it loaded at start, so after an upgrade it spoke the previous protocol and the new daemon denied every call. The daemon now answers the previous protocol, and the CLI re-asks an older daemon in its own version. Where Cloud targets policies at specific agents, a request that names no agent still fails closed. (#1033)
  • A policy stuck in a loop no longer blocks every tool call. The worker that timed out is replaced after 30 seconds, and the next call is answered at once. Before, every tool call on the machine waited 30 seconds and was denied until the daemon restarted. (#1033)
  • Policies written with require() load and enforce under Node. 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. failproofai now loads a file as CommonJS only when Node itself refuses it as an ES module, one file at a time, so an ES module is never reinterpreted. On Node 20, which can't require() an ES module, a policy's required helper loads too. (#1033)
  • A deeply nested blob: policy URL from Cloud no longer crashes the daemon. url moves to 2.5.9 (RUSTSEC-2026-0592), and such a URL is refused. (#1032)

Setup and upgrade

  • The first failproofai config on a new version finishes the upgrade. It migrates Hermes profiles and restarts running Hermes and OpenClaw gateways so they load the new plugin. A later setup that plugs in a newly created profile restarts that profile's gateway. (#1033)
  • failproofai update restarts running gateways through their own drain-aware restart, after in-flight work finishes. Only service-managed gateways are touched; --no-restart opts out. (#1033)
  • A Node upgrade no longer breaks the service. The service saves a stable path to Node (for Homebrew, /opt/homebrew/bin/node, not the versioned Cellar path an upgrade deletes), and update repairs a service whose saved path is gone. (#1033)
  • Cloud-managed machines are pointed at Cloud. config --status, setup's summary and the empty failproofai policies screen say "Deploy from Cloud" instead of suggesting a policy pack, and Jev-only deployments are counted. (#1033)

Daemon reliability

  • The daemon survives a transient accept() error (out of file descriptors, an aborted connection) instead of exiting and denying every hook until restarted. (#1033)
  • The collector and Cloud policy sync restart after a panic instead of stopping silently while the daemon keeps answering hooks. (#1033)
  • A client that stopped waiting is logged as that, with how long the evaluation took, instead of macOS's bare "Invalid argument (os error 22)". (#1033)
  • "No pack is installed" is logged once per process, not on every hook call. (#1033)

Delivery to Cloud

  • Outages drain on their own. Batches parked during an outage are retried as soon as Cloud accepts a batch again, or within 5 minutes on an idle machine, instead of at the hourly pass. config --status counts them as queued, and a long outage reads as stuck, not Healthy. (#1033)
  • Rotating the machine key no longer looks like a refusal. A batch refused under a key the machine has since replaced is retried with the new key, so config --status no longer says "the cloud is refusing this machine's key" right after a successful connect. (#1033)
  • A too-large batch is split and resent until each piece fits. Only an event that is too large on its own is parked. (#1033)

Policy checks in Cloud

  • Checks sit under the tool call they governed. Hook events now carry the agent's own tool-call id (Claude, Devin, Factory, Pi, Hermes, OpenClaw), so Cloud shows each check under its call instead of beside it by time. A check's start is stamped when the hook arrived. (#1033)
  • Allow roll-ups are stamped when their first hook arrived, not at the top of the minute, and name the tool calls they cover. (#1033)

New

The daemon keeps its own log

  • ~/.failproofai/logs/daemon.log on every OS. It is owner-only, rotated at 10 MB, and keeps 3 files. Every line has a timestamp and level. (#1033)

The daemon reports to Cloud when something is wrong

  • Machine facts. Each policy poll tells Cloud the daemon version, CLI version, OS and architecture. (#1033)

  • Its log, only when needed. The daemon uploads its log only:

    • as a roll-up of distinct warnings and errors, at most every 5 minutes;
    • as the 5 minutes around an error, or after a run that ended badly, at most once per 15 minutes;
    • when a FailproofAI operator requests it for troubleshooting.

    Secrets are redacted and the home folder and machine token removed on the machine before upload. A policy's own output is sent only when an operator asks. Set FAILPROOFAI_NO_LOG_UPLOAD=1 to turn uploads off on a machine. (#1033)

Your organization decides whether logs are sent

  • The troubleshooting setting in Cloud controls it. In your organization's settings, send daemon logs to failproof turns daemon-log uploads on or off for every machine in the organization. While it is off, the daemon sends nothing, queues nothing, and drops any pending request. (#1033)
  • Off stays off across restarts. A daemon restarted while the setting is off, cleanly or after a crash, sends nothing before it next hears from Cloud. (#1033)
  • Nothing from while it was off is ever sent. When the setting is turned back on, the daemon marks that moment, and no later upload carries a line logged before it. Right after turning it on, a log request can therefore come back empty: there is nothing new to send yet. (#1033)
  • A Cloud that predates the setting is treated as on, as before. (#1033)

The daemon notices when hook data stops

Every 5 minutes the daemon checks whether hook data is still flowing while the rest of the collector works. It logs an ERROR, which reaches Cloud with its error roll-up, when:

  • An agent works with its hooks not firing. The agent's sessions show tool calls in the last 10 minutes, and none of them reached failproofai's hooks, so they ran unchecked:
    codex: 5 tool calls in the last 10 minutes and none reached failproofai's hooks, so they ran unchecked: its hooks are not installed or not firing
  • Hooks are answered but nothing is recorded by the hook activity store.
  • Hook batches are stuck for 15 minutes while other events deliver.
  • Cloud refused hook batches.

Only tool calls made now count, so the backfill after setup never raises it. A problem repeats hourly while it lasts, and its end is logged once. (#1033)

Dependencies

  • url 2.5.9 in the daemon (RUSTSEC-2026-0592). (#1032)
  • The Python SDK's dev/test lockfile moves crewai to 1.15.44, where chromadb is optional, so chromadb and its four unfixed advisories leave it. The OSV allow-list is now empty; the picomatch advisory it held was withdrawn upstream. (#1032, #1033)

Upgrading

  1. Run npm i -g failproofai@latest.
  2. Run failproofai config (or failproofai update). This updates the daemon, which asks for sudo once, and restarts running Hermes and OpenClaw gateways so they load the new plugin.
  3. Check with failproofai config --status: the daemon should read 1.0.17.

Good to know

  • Against an older Cloud. A Cloud without the daemon-log route answers 404. The daemon then stops uploading logs for a day; enforcement and delivery are unaffected. Older daemons keep working with the new Cloud; they just send no facts or logs.
  • Existing organizations start with troubleshooting off. Organizations created before this release have send daemon logs to failproof off until someone turns it on; new organizations start with it on.
  • A project with hooks deliberately off will be flagged. If an agent's only activity is in a project where its hooks are turned off (for example Claude Code with disableAllHooks), the daemon logs that agent's "none reached failproofai's hooks" error. That is accurate: those calls run unchecked.
  • Some agents' checks can't sit under their tool calls yet. Cursor, OpenCode, Antigravity and Goose don't send a tool-call id the transcript can match. Their checks still arrive and still enforce; Cloud places them beside the call by time.
  • Installing from the release's .tgz file with npm 11.19 or newer prints a warning that the package's prepare script isn't covered by allowScripts. Nothing runs and nothing is missing: the package is already built. npm i -g failproofai from the registry shows no warning.