Repository navigation
Failproofai v1.0.18
failproofai 1.0.18: release notes
Stable release (npm
latest). Ships failproofai #1062 (Self Reports) and #1053 (agent settings guard) together through one release PR (#1105), plus everything else merged since 1.0.17.
Highlights
-
Self Reports. Agents can now tell you when they're stuck. Every agent failproofai supports gets a
reporttool. When an agent hits something it can't fix itself, it calls the tool once with a category and a one-sentence reason. Examples:- a missing or expired key, or a 401
- a command that keeps failing
- information it can't get
- a request it can't do
The report lands on that session in FailproofAI Cloud, where you can alert on it and audits can find it.
-
Agents can't turn off their own guardrails. A prompt-injected agent could switch enforcement off by editing its own CLI's settings, for example
"disableAllHooks": truein Claude Code, or by deleting failproofai's hook entries. failproofai now refuses those edits for every supported CLI, whether they're made through file tools or through the shell. -
Policies now come only from the policies pack. The CLI no longer carries the policy source. It compiles in only the always-on self-protection guard.
failproofai updateinstalls the pack for you (see Upgrading).
Self Reports
What you get
- The tool:
report(category, detail)on a local MCP server namedfailproofai_local. The name lets it sit next to the FailproofAI Cloud MCP gateway, which is calledfailproofai. - Six categories:
loopingcannot_do_requestinvalid_tool_or_credentialmissing_contextrepeated_tool_failuretask_failure, which also covers any blocker the other categories don't describe
- No lost reports: a missing or misspelt category is filed under the closest listed one. A 401 or a missing token becomes
invalid_tool_or_credential. - No side effects: calling the tool never unblocks the agent and never changes a policy decision. The agent is told not to mention it to the user.
On by default, controlled from Cloud
- Self Reports is on unless an admin turns it off in FailproofAI Cloud (Settings › Self Reports). Every machine follows within about 30 seconds.
- On a machine not connected to Cloud, use
failproofai self-report enableordisable. failproofai self-report statusshows everything:- whether it's on or off, and where that setting comes from
- the categories
- how each agent gets the tool, with a fix line for any agent that has a problem
Works with every supported agent
Each agent gets the tool, and the instruction to use it, through a channel it always loads, so the model actually sees it:
| Agent | How it gets the tool and the instruction |
|---|---|
| Claude Code | MCP entry with alwaysLoad (never hidden behind tool search) |
| Codex | MCP entry, plus a marked block in your global AGENTS.md |
| Copilot CLI | MCP entry, plus a marked instructions file |
| Cursor, OpenCode, Goose | MCP entry (tools are listed directly) |
| Factory | MCP entry, plus the instruction at session start |
| Devin | MCP entry |
| Antigravity | MCP entry set to eager, plus a marked rules plugin |
| Pi | failproofai's Pi extension, which works on old and new Pi alike and also carries the hooks (checked on Pi 0.85.1 and 1.7.0) |
| Hermes, OpenClaw | failproofai's plugin registers the tool natively and follows the on/off switch without a restart |
After a tool failure that clearly blocks, the agent gets one line of context suggesting report if it can't fix the problem. This happens once per session. Examples of a clear block: a 401 or 403, an expired key, an unset *_TOKEN, or the same command failing twice.
In FailproofAI Cloud
- On the session: reports are internal, so there's no Self Reports page. A report shows on the session's timeline and its event, tagged self-reported.
- Alerts: the quick pick "an agent self-reported a problem", optionally filtered by category.
- Audits: the finding "Agents self-reported a problem" links every report. Triage favours sessions with a report.
- Patterns: a card, "agents self-reporting problems".
- Assistant, Slack and Cloud MCP:
list_self_reports("which agents got stuck this week?"). - Settings: for now, Settings › Self Reports is only the on/off switch.
Tested
- Real agents on real models:
- All 12 agents reported a genuinely stuck task, in 40 of 40 runs.
- None reported on a normal task, in 27 runs.
- On macOS, 5 of 5 agents reported, with no false reports.
- Does the tool change behaviour? No:
- The test used 20 business-style tasks, each in a solvable and a blocked version, across 8 agents, with the tool on vs off.
- About 1,000 paired trials ended the same way 93.5% of the time. That's the same as running an agent twice with nothing changed (93.9%).
- Solves gained and lost with the tool were balanced (35 vs 30, p = 0.62).
- SDK apps in production containers: a LangGraph app and a Claude Agent SDK app were tested in their own production images, with the 1.0.18 daemon uploading their SDK events.
- Stuck sessions reported on the right session and agent, and working sessions didn't.
- The daemon upgrade from 1.0.3 uploads exactly the same events.
Safety
- Only failproofai's own
failproofai_localregistration may skip the policies, judged against the configuration the calling agent actually uses. A foreign server, or a program that borrows the name, goes through the policies like any other tool. - The daemon's MCP server listens on 127.0.0.1 only. It rejects any foreign Host or Origin and caps requests at 64 KB.
- Secrets are scrubbed from the full report text before any log line is cut. A credential is never left half-cut.
Agent settings guard (#1053)
- File tools: Write, Edit, MultiEdit, NotebookEdit and
apply_patchare refused on every supported CLI's settings and hook files. That includes:- files behind symlinks
- files relocated with
CLAUDE_CONFIG_DIRorCODEX_HOME - files under a project's
.claude/ - OpenCode's
opencode.json(c)and.vscode/settings.json
- Shell: failproofai reads commands the way a shell does, with quotes,
cd/pushd, links and globs. It refuses writes to those files and attempts to turn hooks off.- A reader such as
cat,jqorgrepis treated as read-only only when it's the real system tool. A project's own./catdoesn't count. - Commit messages, PR bodies and other quoted text are not mistaken for commands.
- A reader such as
- Codex and Copilot running shells: text typed into a running shell (Codex
write_stdin, Copilotwrite_bash) is checked as the commands it runs. Keys that would run unchecked text are refused, including history recall (Up-arrow,!!) and acdthat carries a later write into an agent's config. Codex commands that open an interactive shell are refused. failproofai config --statusflags a Claude CodedisableAllHooksthat would switch off installed hooks, and names the file.
Behaviour change
Agents can no longer edit any agent's settings or hook files. That includes Claude Code's own agent-driven settings edits, for example /statusline and "add X to my allow list"; the agent asks you to make the change instead. These are unaffected:
- your own editor
/permissions- "don't ask again" prompts
failproofai policies --install
Also in 1.0.18
- Codex audits: Codex's newer code-mode transcripts (
custom_tool_call) are now read, so those sessions no longer scan as zero tool calls. - Copilot: the
taskandweb_searchtools now map toTaskandWebSearch, so policies matching them fire on Copilot sessions. --no-color: a global flag, the same asNO_COLOR=1.- Audit: the
sleep-polling-loopdetector countssleep 30sand everysleepin a command. - Codex session cache: now written atomically, so a full disk or a killed hook no longer loses every cached session.
- Dashboard: one session with an out-of-range timestamp no longer empties an agent's project list.
- Cloud CLI (
fp): query results keep bracketed units such aslatency [ms]. - Containers: the daemon's own unattended Self Reports sync no longer logs a "not set up yet" line on every start. This applies to machines used only as a collector, such as an app image uploading an SDK's events.
- macOS: backing up failproofai's state to
/tmpor/var/tmpis allowed again. - Docs:
- personal and organization keys
- the MCP server's approval behaviour
- cloud-managed policies
- evaluation testing and bulk scoring
- Dependencies:
cross-spawn7.1.0 (critical advisory GHSA-ghv9-86vm-4v8m; dev dependency only)posthog-node6notify9 andrusqlite0.43 in the collector
Upgrading
npm i -g failproofai@latest
failproofai update- Policies pack: if this machine enabled policies under an older build,
updateinstalls the policies pack and keeps your selection. If it can't reach GitHub, it fails and prints the command that fixes it. Until a pack is installed, hooks,config --statusandfailproofai policiesshow those policies as not enforced. - Daemon:
updateinstalls the matching daemon and restarts it. - Agent sessions: sessions that were already open keep their old tool list. Start new ones to pick up the report tool.
- Hermes and OpenClaw: if they run as a gateway service,
updaterestarts it. Otherwise runhermes gateway restartoropenclaw gateway restart --safeyourself. - Apps that run the daemon as a collector in a container: move the image to
failproofai@1.0.18. The daemon's environment-based ingest settings are unchanged. For the report tool in your own agents, use the SDK releases that added Self Reports:failproofai-sdk0.0.1b7 (Python) and@failproofai/sdk0.0.1-beta.3 (TypeScript). - FailproofAI Cloud: the Self Reports views ship with the Cloud release. Older CLIs keep working against it.
Known limits
- The Hermes tool's schema is fixed when the gateway starts. New categories reach the model at once through the instructions, and reach the schema at the next gateway restart.
- Inside a container, run
failproofaidnext to the agent, or reports stay on disk inside the container.
Thank you, contributors
Thanks to the open-source contributors whose pull requests were merged in this release:
- @archit15singh: Cloud CLI query results keep bracketed units (#1031)
- @YukomiFPS: the dashboard keeps an agent's project list when a session has an out-of-range timestamp (#1111)