Limits
What a check covers in the current build of il, what it does not, how bounds and assumptions are printed, and the supported languages.
A result is only as useful as your understanding of what it covers. This page says what a check covers in the current build of il, what it does not, and how to read the bounds and assumptions a result carries.
What a check covers
A check covers one guarantee with a model of the code's steps. il explores every reachable state of that model within the guarantee's bounds: on InputLayer's checkout-quickstart example, 19 states. That is the difference from a test, which runs the paths someone thought of. The model is not the code. A model can leave out what the code does, so each guarantee lists what it leaves out, and a break counts as reproduced only once il has replayed it on the code.
"Holds within bounds" means exactly this:
- the guarantee as written, not what you meant by it;
- its model, as written from the code, not the whole repository;
- the bounds the guarantee states, not larger ones;
- under the assumptions it states.
What InputLayer does not check
| Not checked | Why |
|---|---|
| Anything outside the bounds | A check within its bounds says nothing about larger ones |
| Performance, latency, throughput | A guarantee says what must or must not happen, not how fast. Use load tests and profiling |
| Memory safety and resource leaks | Out of scope. Use sanitizers, fuzzers and your language's tooling |
| User interfaces | Out of scope |
| Login, cryptography and infrastructure | Out of scope: a guarantee covers your code's steps as its model states them |
| What the model leaves out | Each guarantee lists it. il show --verbose, a holding row of il ci and .inputlayer/last-task.md print it after "Outside this check:" |
Choosing bounds
Bounds keep a check finite. Write them in plain numbers, and match them to the bug you are guarding against: if a bug needed three concurrent requests, a bound of two will not find it again. Count the actors that really share state, and include retries if your code retries.
Assumptions
A result prints what its check took as given, after "Assumed, not checked:". On the checkout-quickstart example, il evidence prints "Assumed, not checked: the far side of self.network.call honours a repeated key." If an assumption is wrong for your system, the result does not carry over.
Supported languages
| Language | In the current build |
|---|---|
| Python | il derive reads Python. On the checkout-quickstart example, il replays a break as a test on the code: see CI. The examples were run on Python 3.12 |
| TypeScript | Not covered by il's own replay generator, which is Python only |
What we have measured
We quote no numbers yet.