Guarantees

What we promise, under which conditions, and what we do not promise. Read this before you rely on it.

This page lists what Call4Agents promises. Each promise comes with:

A promise with no check behind it is not on this page. Every check named here is also mutation-tested: we put the bug back on purpose, and the check must fail. You can rerun that with python -m tests.mutations.run_kit_mutations.

The words used here are explained in CONCEPTS.md.

G1. An action runs at most once

The promise. For one run, one tool and the same arguments (or the same c4a_key), the function runs at most once. This holds when the process crashes, the framework retries or resumes, or several callers arrive at the same time. A later call returns the recorded result. If the kit cannot know whether the action happened, it raises EffectInDoubt and does not run it again.

Conditions:

Checks:

Not covered:

G2. A "yes" covers exactly the call that was shown, once

The promise. An action with approval=True runs only if c4a.approve recorded a "yes" for exactly its tool and arguments.

Conditions: the secret is kept away from whoever is not allowed to approve. Anyone who has the secret can sign a "yes".

Checks:

Not covered:

G3. A "no" wins

The promise. c4a.deny cancels every earlier "yes" for the same arguments. This includes an action that is in doubt: its retry needs a new "yes".

Checks:

Not covered: an action that already ran before the "no". The record shows that it ran; the kit cannot take it back. That is what undo= is for.

G4. A named action is never confused with another

The promise. A c4a_key (or key=) used again with arguments that mean something else is a conflict, not a cache hit. Nothing runs, and you never get another call's result. Numbers that are equal (10, 10.0, Decimal("10.00")) count as the same.

Checks: K21 (three checks) and the crash matrix M4.

G5. The record tells the truth about itself

The promise.

Checks:

Not covered: someone with write access to the file who rewrites it on purpose. The audit export (call4agents audit) signs what was there when it was exported, not before.

How we look for what we missed

When a promise turns out to be wrong, the CHANGELOG says so: which versions are affected, who is affected, and the fix. Fix 17 and Fix 19 are examples.

Source: docs/GUARANTEES.md in the repository.