Evidence

How Ferrite tests its claims

Platform isolation and reliability properties earn confidence only when stated as falsifiable conditions. Every architectural claim on Ferrite is written as an observable outcome that would harm an application or its users, paired with an automated test that fails if that outcome becomes possible.

These checks span the command-line tool, the local runtime, the hosted platform, published packages, and reference applications such as Northlight Yoga. Several run directly against your own project, so an evaluator can verify the boundary firsthand on real code.

A customer holds a place in a class.

The place stays held until its expiry time, then returns even with no further requests.
The yoga booking example's tests advance the clock past a hold's expiry and fail if the place is not released, or if a fresh worker rewrites the expired hold.

Source admission refuses ambient authority

Application code on Ferrite cannot open sockets, touch host files, read environment variables, spawn processes, pull extra third-party crates, run build scripts, invoke procedural macros, or contain unsafe Rust. Before any build begins, Ferrite's admission checker parses both the declaration and the source tree, failing closed on unparseable input.

Ferrite tests this layer against a collection of hostile source files and malformed declarations that attempt to acquire ungranted authority. The suite fails if any hostile sample passes admission. You can verify the check directly on your own project by adding a standard-library socket call such as std::net::TcpStream::connect and running ferrite check --remote, which requests the platform's own verdict at zero charge. The claim fails if the source is accepted. Admission returns the rule code CODE_AMBIENT_AUTHORITY, and ferrite explain CODE_AMBIENT_AUTHORITY prints the cause and remediation. Source admission filters forbidden patterns early before compilation, while OS containment enforces the runtime boundary against any pattern the static check might miss.

Declared egress blocks undeclared hosts

An application can initiate outbound requests only to the literal HTTPS URL prefixes declared in ferrite.json. Both the hosted outbound gateway and the local development runtime deny outbound traffic by default, match permitted requests against declared prefixes character by character, pin resolved addresses to block DNS rebinding to private, loopback, or cloud-metadata ranges, and refuse HTTP redirects.

Admission tests separately verify that declarations targeting private networks, loopback addresses, metadata endpoints, or the platform's own domain are rejected before build. You can exercise the runtime rule directly on your own application: declare one HTTPS prefix in ferrite.json, issue a request to any other destination, and verify that the call fails before a connection opens. The claim fails if any request reaches an undeclared target.

Process containment holds against a control

A running application cannot reach the cloud metadata service, the public network, host mounts, other processes, or raw sockets. A negative containment test proves little if the underlying test host lacked network reachability or privileges to begin with, because the probe would have failed even without isolation.

Ferrite's containment suite avoids vacuous passes by pairing every contained run with an uncontained control on the same host. The suite launches a hostile probe inside a production-configured instance, with its own unprivileged user unable to regain privileges, private kernel namespaces with no network route, a minimal filesystem exposing only the application binary and context, a system-call filter, and hard memory and CPU limits. The test fails unless the contained probe is refused access to the cloud metadata service, public network egress, new namespaces, mounting, process tracing, and raw sockets. It then runs the same probe without containment and fails unless the uncontained probe succeeds. In production, any instance whose containment limits cannot be established is never started. The security page describes every layer around that boundary.

Sign-in rejects replayed and forged requests

Applications that include Ferrite's sign-in package refuse session fixation, callback replay, and cross-site request forgery. Because the package compiles into the application as ordinary source, it operates inside the same ferrite.json declaration and carries regression tests named after the attacks they block.

The suite replays a previously consumed sign-in callback, presents a planted session identifier, and submits a state-changing request without its CSRF token. Each test fails if the forged or replayed request succeeds. Your team or coding agent can run the same style of test against every route your application guards, exercising the exact stores and handlers that serve production traffic.

Held capacity expires without incoming traffic

In Northlight Yoga, a customer holding a seat in a class keeps that reservation for five minutes, and the seat returns to inventory on expiry even if nobody visits the site. The hold writes its expiry timestamp into durable storage, where a background worker reconciles expired entries from persisted state.

The test creates a hold, advances the clock past expiry with no further HTTP requests, and fails if the hold is not marked expired or if the seat stays locked. It then launches a fresh worker with empty in-memory state against the same storage and fails if the restarted worker rewrites the already-expired record.

Concurrent writes cannot double-book a seat

Two customers racing for the final seat in a class must never both obtain a confirmed booking, and a retried identical request must produce one consistent outcome. Each booking claims inventory with a compare-and-set operation against the class seat ledger.

The concurrency test sends two simultaneous booking requests for the last open place and fails unless one succeeds and the other receives a conflict. A paired idempotency test submits duplicate copies of the same booking request and fails if more than one booking exists or if the duplicate receives a different response from the first.

Queued work survives worker crashes

Terminating a worker mid-flight must never drop queued messages, and failing messages must stay within their configured retry ceiling. Ferrite queues provide leased, at-least-once delivery: when a worker dies while holding a message, the lease expires and another worker receives the message again.

Failure-injection tests in the runtime kill active workers while draining live queues and fail if workload totals are not conserved or if any message exceeds its dead-letter budget. Because crash recovery can redeliver an incomplete handler, an external side effect such as a charge or email stays idempotent by carrying a stable deduplication identifier that the receiver checks. You can exercise this failure mode directly on your own application with ferrite dev --chaos SECONDS, which kills and restarts the running process roughly every SECONDS seconds so non-idempotent side effects surface immediately.

Results stay bound to the tested revision

An architectural verification result belongs to the compiler, builder, runtime, network topology, and policy revision that produced it. Whenever one of those components changes, Ferrite reruns the affected verification suites against the new revision and records the outcome with the build.

Ferrite's engineering team also reviews the runtime, control plane, published packages, and hosted service continuously using automated security-review tooling, independent code review, and security-specialised models from two vendors, turning confirmed findings into regression tests and recording every exception. If an evaluation depends on a specific boundary or failure condition, contact the engineering team to inspect the matching test evidence.