# Developer's AI-Agent Security Tool Failed Its Own Locked-Store Test, Field Report Says

A community field-test writeup claims agentinbox v0.1.0 reopened a permission-locked database instead of refusing to run, and that its own diagnostic then reported the store as healthy.

Canonical URL: https://freelancenews.online/news/developer-s-ai-agent-security-tool-failed-its-own-locked-store-test-228f287e
Published: 2026-11-22T22:17:53.926Z
Updated: 2026-11-22T22:17:53.926Z
Source published: 2026-11-18T07:00:00.000Z
Event date: Not established
Review status: source-reviewed
Review method: Automated comparison against retrieved source text; not independent fact-checking.

## Report

A developer publishing under the agentinbox project has described a defect in the v0.1.0 release of an open-source security tool for AI-agent defenses, in which the product was supposed to refuse to operate against a permission-locked data store but instead restored access and exited successfully. The account appears on dev.to as the first finding of the project's v0.1.0 field test report; it is an author's own disclosure about their own software, not an independently verified audit.

According to the post, the tool ships as part of an "agentic-suite" of harness-agnostic security utilities. The author states that the defect, the reproduction and the fix are documented in the field test report, with the evidence filed under a results directory for a case named FT-SC-24-LIVE, and that the released build is agentsec-agentinbox==0.1.0 on PyPI. The article carries an explicit AI-assistance disclosure for drafting and editing.

The scenario was a standard fail-closed check: set the store file's permissions to 000 so that nobody, including the owner, can read or write it, then confirm the product refuses to proceed. The author writes that the fault matrix required a permission-locked store to fail closed, and that the case was designed to run on a real machine with no fixtures in between.

Per the account, what happened instead was this: no pending asks were printed after the tool examined the locked store and unlocked it. With a branch that privately created a new file when none existed, the driver opened its database; on an existing file it otherwise ran a chmod to 0600. Permissions were handed back by that second branch, executed by the owner's own process. One function call was all the lockout lasted: the connection succeeded, the inbox rendered, and status 0 was returned when the command-line tool exited.

The author reports a second, arguably more troubling layer. A shipped posture-check command, referred to as doctor, then inspected the file and reported mode 600 as healthy. In the author's framing, the recovery path itself was not the core problem; the problem was that recovery made the diagnostic lie. When a health check reports green after a fail path has fired, the author argues, the health check is the vulnerability.

The post is candid about why an extensive unit suite missed this. The author says 930 tests were green, including one literally named to assert that the store does not loosen permissions on open. The structural gap, as described, is that a unit test builds its own store in a temporary directory and asserts against the thing it just created. Such a fixture cannot simulate a permission change made outside the process, after creation, by another actor, because the shape of the test never asks that question.

The live case differed in exactly that respect. The author says the step script performed the chmod against the real home directory and then invoked the tool, expecting the reserved fail-closed exit code of 4. The field returned 0. The discovery required no fuzzing or clever tooling, only running a scheduled fault case on a real filesystem and recording it as a failure against the author's own product.

As reported, the fix was small: at exactly one moment in a store's life — creation — permissions should change. Privately, the revised code creates a new database; for an existing file it reads the current mode and tightens permissions only when the file is readable but permissive. The connection attempt is now reached by a file the owner cannot read, raising an error that the author says the CLI wraps and maps to exit code 4, with the mode left untouched.

What mattered, the author emphasizes, was not the patch but the discipline afterward. The described sequence is: against the broken build, write a regression test that chmods a real database to 000, asserts the store loader raises the project's error type, and asserts the mode stays 000; watch it fail; apply the fix; watch it pass. So that the fix cannot overcorrect into refusing to create private files, a second test asserts that a fresh store is still created 0600. Last, on the fixed build the live case is re-run in the field, where the author says the locked store now exits 4 rather than only passing under the test runner.

The author's stated conclusion: without that third step there would only be a claim, and what turns it into evidence is the re-run. Scale is also reported in the post: 53 field units ran, exactly one product defect surfaced, and it was found by a fault case rather than a unit test. According to the author, the other five failures were harness problems plus a deliberate decision to run no human study.

For developers and freelancers who ship tools with security or safety claims, the practical lesson is about test shape rather than test count. A suite can be large, green and even named after the exact property it fails to protect, because fixtures pre-forgive the conditions the tests are meant to catch. Faults that originate outside the process, on a real filesystem, are the ones a self-built fixture structurally cannot produce.

There is also a diagnostic lesson worth carrying into client work: after any recovery or fallback path fires, check what the monitoring or health command reports. A tool that silently repairs its way into a healthy state will pass every subsequent check, and the author's account suggests that is where confidence becomes dangerous.

The tradeoffs are real. The author notes the field case cost roughly a day of harness work to run, and that the unit suite would never have caught the bug. That is a concrete cost against an uncertain benefit, and it is the kind of budget decision a solo developer or small studio has to make explicitly rather than by default.

Several things remain unverified. This is a single author's account of their own product, with no independent reproduction in the supplied material, and the linked artifacts, report rows and test files are described but not included in the evidence. The claim that 930 tests were green, the 53-unit field run and the exit-code behavior are all author statements. Readers who want to check the specifics are pointed by the author to the field test report, the case directory, the named regression test file and the PyPI release.

The broader takeaway, offered as editorial interpretation rather than a finding of the post, is that fail-closed behavior is only as trustworthy as the environment in which it is exercised. A tool that refuses correctly under a test harness but repairs itself on a real machine has not demonstrated the property it advertises, and the author's own framing, that tests cannot find what fixtures pre-forgive, is a useful prompt for anyone auditing their own release checklist.

## Key points

- The author reports that agentinbox v0.1.0, an open-source security tool for AI-agent defenses, reopened a database locked with chmod 000 instead of failing closed, exiting with status 0 rather than the reserved fail-closed code 4.
- A shipped posture-check command reportedly reported the store as healthy (mode 600) after the fail path had fired, which the author calls the more serious problem.
- The author says 930 unit tests were green, including one named for the exact property that broke, because fixtures build their own store and cannot simulate an external permission change.
- The reported fix restricts permission changes to store creation and leaves unreadable files to fail through to an error mapped to exit code 4; the author says a regression test was written against the broken build first and the live case re-run afterward.
- The author reports 53 field units ran with exactly one product defect found, by a fault case rather than a unit test, and that the other five failures were harness problems plus a deliberate decision to run no human study.

## Practical implications — editorial interpretation

Editorial interpretation: developers shipping tools with safety or fail-closed claims should test the refusal path on a real filesystem with faults injected from outside the process, and should verify what their health or diagnostic command reports after a recovery path fires, since a self-repairing tool can pass every later check.

## Limitations and unknowns

This is a single author's account of their own product on a community site, with no independent verification in the supplied material. The field test report, case directory, regression test file and PyPI release are referenced but not included, so the 930-test count, the 53-unit field run and the exit-code behavior are author claims. The post discloses AI assistance in drafting and editing.

## Sources

- [1] dev.to: The Locked Store That Unlocked Itself
  https://dev.to/debashish_ghosal/the-locked-store-that-unlocked-itself-31o8
  Retrieved: 2026-11-22T22:17:36.251Z

## Claim references

- The tool reportedly unlocked a permission-locked store and exited successfully instead of failing closed. [source 1]
- A shipped diagnostic reported the store as healthy after the fail path had fired. [source 1]
- The author says 930 unit tests passed, including one named for not loosening permissions on open. [source 1]
- The live case expected exit code 4 but the field returned 0. [source 1]
- The author reports 53 field units ran and exactly one product defect surfaced, found by a fault case. [source 1]
