Appearance
Tests & Schedules
A test gives a condition for a metric. A schedule gives the time when Modulos checks the condition. Together, they check Control outcomes continuously.
This page covers Metric Tests. Runtime Inspection has one tests table with two types of test: Metric Tests, and Agent Tests. An AI agent judges an Agent Test against Pass Criteria in your own words.
What this is
A Metric Test has these parts:
- one Source
- one metric
- one operator
- one expected value
- an optional schedule
One condition keeps a test easy to read for Viewers and auditors. It also gives a short answer to the question: what does this test prove?
Where in Modulos
AI System → Runtime Inspectionshows the tests and lets you filter them.AI System → Runtime Inspection → New Test → Metric Testopens the Create New Test dialog.AI System → Runtime Inspection → select a testlets you run, edit, and link the test, and read its results.AI System → Settings → Sourceshas the Sources that your tests use.AI System → Jobsshows the Jobs of the AI System. See Jobs.
If your organization does not use Agent Tests, New Test opens the Create New Test dialog immediately. If your organization does not use Agent Tests and no Source is enabled, New Test is not active.

New Test asks for the type of test first. Metric Test opens the Create New Test dialog.
- Metric Test Compares one metric from one Source with a threshold. The card is not active when no Source is enabled.
- Agent Test An AI agent examines the Sources against your Pass Criteria.
How to add a Metric Test
- Open
AI System → Runtime Inspection. - Select New Test.
- Select Metric Test. If no Source is enabled, the card is not active.
- Type a Test Name. If necessary, add a Description.
- Select the Source.
- Select the Metric. Type the metric name and select Check, or select a metric that the Source shows. For an Azure or AWS Source, select the resource before the metric.
- Select the Operator and type the Value. Modulos infers the metric type from the Source.
- Keep Schedule Testing and set a Frequency and a Time, or select Run it manually.
- Select Create Test.
The test gets a code such as T-1, and its page opens. On that page, set the assignee and link the Controls. See Ownership and linking.
In a chat about an AI System, Scout can also propose Metric Tests, and Modulos creates them when you accept (Propose tests).
Who can do what
Permissions
- Owners and Editors can create, edit, turn on, and run tests.
- Viewers can read tests and results. They cannot run or change tests.
How test conditions work
Operators and metric types
The operators that you can select change with the metric type:
| Metric type | Supported operators | Examples |
|---|---|---|
| String | Equal to, Not equal to | “status equals ok” |
| Number | Greater than, Greater than or equal, Equal to, Less than, Less than or equal | “error rate less than 0.01” |
Modulos infers the metric type when it checks the metric against the Source.
Evaluation behavior
When a test runs, Modulos reads the latest available value of the metric in a lookback window. Then it compares the value with the expected value, with the operator. For Prometheus, Datadog, AWS, Azure, and Langfuse, the Frequency of the test sets the length of the window. The other Source types use their own period. See Schedules.
A test accepts small differences in timing. You usually want the most recent signal, not a data point from one single second.
If the lookback window has no value, the result is error, not failed. See Result statuses.
Schedules
A Metric Test can run by hand or on a schedule. Set this in the Schedule section of the Create New Test dialog, or after that with Edit. Select Schedule Testing or Run it manually.
A schedule has a Frequency and a Time. The frequency sets the day of each run. For Prometheus, Datadog, AWS, Azure, and Langfuse, it also sets the lookback window:
| Frequency | The test runs on | Lookback window |
|---|---|---|
| Daily | Each day | 1 day |
| Weekly | Sunday | 7 days |
| Monthly | The first day of the month | 30 days |
| Quarterly | The first day of January, April, July, and October | 90 days |
The test runs at the Time that you select. Modulos shows schedule times in your local time zone. Jobs explains how Modulos counts the days.
The other Source types do not use this table:
- Claude Console and OpenAI Platform read the number of days of the window, but not less than 7 days and not more than 31 days.
- Claude Enterprise and Snowflake: each metric sets its own period.
- Vijil: Modulos reads the latest evaluation.
- Modulos Client: Modulos reads only the values of the current day.
The window comes from the schedule of the test itself. This applies also when you select Test Now, and when a Job that you made with Create Job runs the test: the schedule of that Job does not change the window. A test with no schedule uses the default window of its Source type. The page of each Source type tells you which value Modulos reads.
A test with a schedule runs as a Job. Modulos makes the Job and gives it the name of the test. You can read its runs on the Jobs page. If you turn off this Job there, the test gets no schedule.
To run more than one test on one schedule, use Create Job on the Runtime Inspection page. See Jobs.
Ownership and linking
The page of a test has these settings:
- Status: Enabled or Disabled. A disabled test does not run. Set the test to Enabled before you select Test Now.
- Assigned To: the member who examines failures and errors.
- Associated Controls: the Controls that the test monitors. Associate to a Control shows the Controls of the AI System that are not Archived or Out of Scope.
Link a test when the Control is in use. On a Control page, Associate to a Test is available while the Control is Not Executed.
A failed or error result sets each linked Control that is Executed to Not Executed. See What a failed result does to Controls.
How to use it
- Choose a Control outcome Pick a signal that shows if the Control works.
- Select New Test, then Metric Test The Create New Test dialog opens.
- Select a Source Select a Source that gives the signal. For metrics that your code sends, select Modulos Client.
- Set the condition Select an operator and an expected value for the metric type.
- Add a schedule Select a frequency that matches how fast a change matters.
- Assign and link Assign an owner and link the test to the Control.
Important considerations
- Test outcomes, not each implementation step. Some high-signal tests are better than many tests with noise.
- If a test returns error frequently, the cause is in the integration or the observability platform, not in the Control.
- Give the units and the direction: “p95 latency less than 250 ms” is clearer than “latency ok”.
- Frequent schedules cause many notifications. Start with daily or weekly runs. Use a higher frequency only when fast feedback is necessary.