Agents and runsCalendar and scheduling

Agents and runs

Plan runs on the Calendar

Plan Attack and Defense runs on the Calendar, start one now, let Autopilot spread your hours over the month, and see why a run was skipped.

The Calendar shows a month of your agents' work: the runs you planned, the runs that ran and the runs that were skipped. Choose Calendar in the dashboard sidebar. Anyone in the workspace (owner, admin or member) can plan, move and remove runs.

The Calendar shows the current project, and every run you plan belongs to it: a website project's runs test its website as it is when the run starts, and a repository or app project's runs read its code or file. Switch projects at the top left of the sidebar. Times are in the time zone set under Time zone in Settings > Account.

Before you can plan runs

When something is missing, the Calendar shows one line above the month with a link to fix it:

  • Choose a plan in Settings to schedule runs. An owner or admin chooses a plan in Settings > Billing.
  • No agent hours left this month. Your hours, including the extra hours your spending cap allows, are used or held. See Plans.
  • Add your website in Setup to schedule runs. Your workspace has no project yet. Add one in Setup.
  • Upload the app file in Setup to schedule runs. or Connect the repository on GitHub in Setup to schedule runs. The project is missing its file or its repository.
  • Verify example.com in Settings to schedule runs. Verify your domain. See Website and domain.
  • Confirm you may test example.com in Settings to schedule runs. Confirm in Settings > Website that you own the website or have written permission to test it.

Drag an agent onto a day

The Agents tray sits next to the month. It holds the Attack Agent and, for a website project or a repository connected through GitHub, the Defense Agent, the hours you can still plan, the next planned run, Run now and Auto schedule.

  1. Pick up an agent

    Press and drag the Attack Agent or the Defense Agent from the tray.

  2. Drop it on a day

    Drop it on today or a later day. The run is planned for 09:00 on that day, in your time zone.

If you drop an agent on today after 09:00, the run starts right away.

You can also use the keyboard. Press Enter or Space on an agent to pick it up, move to a day and press Enter to drop it. Press Escape to put it back.

A Defense run needs your code. Connect your website's code or use a repository project connected through GitHub. If the code is missing when the planned run comes due, the run is skipped. See Defense Agent.

Schedule a run at a set time

  1. Open the day

    Click a day on the Calendar. A popup opens with that day's runs and a form.

  2. Select the agent

    Choose Attack Agent or Defense Agent.

  3. Set the time

    Set Time. It starts at 09:00. On today, after 09:00, it starts at the next full hour.

  4. Add copies for a swarm

    To run several copies of the Attack Agent at once on a website project, set Copies. This applies to the Attack Agent only. See Swarm mode.

  5. Press Schedule

    Press Schedule.

The popup for a day before today lists that day's runs, with no form.

Move or remove a planned run

  • Move it: drag its blob to another day. It keeps its time. If that time has already passed on the new day, it starts right away.
  • Remove it: drag its blob back onto the tray. Or press Remove beside it in the day popup, or in the dashboard's Planned list. With the keyboard, press Delete or Backspace on a planned blob.

A run that has already started cannot be moved or removed. You see "This run has already started."

Start a run now

Press Run now in the dashboard sidebar or in the Agents tray. It plans an Attack run due at once, and the dashboard says "Attack Agent starts in a moment." AgentProof's scheduler checks for due runs every 15 seconds, so the run starts within seconds. Then its computer starts up.

Run now in the sidebar shows when your project is ready and your plan is active. In the tray it is grayed out until runs can be planned. A second press right after the first does not start a second run.

Schedule from the Dashboard

Open Schedule run in the dashboard panel to plan one run without opening the Calendar:

  • Attack Agent and Defense Agent: pick a Day, optionally a Time, and press Schedule. Without a time, the run is planned for 09:00, or right away if that has passed today.
  • Attack swarm: the same, plus Copies. See Swarm mode.

Planned runs are listed under Planned in the dashboard panel. Press Remove beside a run to take it off the plan. See Dashboard.

Fill the month with Auto schedule

Auto schedule in the Calendar's tray, and Plan the month in the dashboard panel, do the same thing. They plan every run your plan's included hours have room for, spread evenly over the rest of the billing month and split between the current project and your other projects with Autopilot on.

How it places runs:

  • Runs go from today (or tomorrow, if it is already 09:00 or later) to the day before your hours reset.
  • Runs come in pairs: an Attack run, then a Defense run two hours later. With an odd number of hours, the last run is an Attack run alone.
  • The first pair on a day starts at 09:00. A second pair on the same day starts two hours after the first, and so on, up to 6 pairs a day.
  • For a project without code the Defense Agent can use, every run it places is an Attack run.
  • It uses only your plan's included hours, never extra hours.

When the included hours are all planned, the button reads Month planned and cannot be pressed.

Let Autopilot plan every month

Autopilot runs Auto schedule for you each billing month. Each project has its own Autopilot, on by default. The switch in the dashboard sidebar reads Autopilot is ON or Autopilot is OFF for the current project. On a phone, the switch is in the bar at the bottom. The Auto schedule every month checkbox in the Calendar's tray is the same setting.

While Autopilot is on:

  • When your hours reset at the start of each billing month, it plans the new month's included hours the way Auto schedule does.
  • It starts the first time anyone in the workspace plans a run, presses Run now, Auto schedule or Plan the month, or changes the switch. If the current month has not been planned yet, it then plans the rest of this month too.
  • It plans only while your plan is active, and only for projects that are ready: a website's domain verified and confirmed, an app's file uploaded, a repository connected.
  • With several projects on Autopilot, the month's included hours are split evenly between them, and their runs start at different hours. A website with its code, and a repository connected through GitHub, get Attack and Defense runs; other projects get Attack runs.
  • When you add a project, verify its website or turn its Autopilot on later in the month, AgentProof spreads the rest of the month's Autopilot runs again across the projects. Runs you planned yourself stay where they are.
  • It plans in the time zone of the person who last planned a run or changed the switch.

To turn it off for a project, click the sidebar switch while that project is the current one, or clear Auto schedule every month. Runs it already planned stay on the Calendar. Remove them one by one if you do not want them.

How many runs you can plan

Each planned run holds one agent hour until it starts. A swarm holds one hour for each copy. When the run ends, only the minutes it actually ran are counted.

The tray shows how many hours you can still plan, such as 7 hours left. That count includes the extra hours your spending cap allows, minus the hours used, the hours held by runs that are going and the hours held by planned runs. Auto schedule and Autopilot use only your included hours.

When a run you did not plan starts, it may push out a planned run. This happens with a repair run, a retest, a deploy test or a run started through the API. If your planned runs would no longer fit in the hours left, AgentProof removes your latest planned run in this billing month, choosing one of the same agent first.

When planned runs start

AgentProof's scheduler checks every 15 seconds and starts each planned run whose time has come.

  • Each agent runs one run at a time in a project, and can run in several projects at once. If the agent is busy with another run of the same project or with a run that belongs to no project, the planned run waits and starts when the agent is free. A swarm's copies are the exception: they run together.
  • If too many runs are already going across AgentProof, the planned run waits too.
  • If a planned run cannot start within 24 hours of its planned time, it is skipped as Missed.

What the Calendar shows

  • The month starts on Monday. The arrows beside the month's name move to the previous or next month.
  • A day with runs takes the color of its latest run: red for the Attack Agent, blue for the Defense Agent.
  • A check mark means every run that ran that day completed. A cross means at least one failed, was stopped or was cancelled. There is no mark while a run is still going. Skipped runs leave the mark alone.
  • Short notes name what happened, such as "Attack: completed", "Repair: running" or "Defense: skipped, no code added". A day shows two lines at most, the last one reading "+2 more" when there are more.
  • Planned runs show as the agent's blob with its start time. A planned swarm shows ×N. A day shows two planned blobs, then "+N".
  • The tray's Next line names the next planned run, such as "Next: Attack Agent Tomorrow, 09:00".
  • The day popup lists each run with its time, agent, label and status, such as COMPLETED, PLANNED or SKIPPED / NO CODE ADDED, and an Open link to its run page.
  • On a day when the clocks change, each run also shows its UTC offset.
  • On phones, the month is replaced by a list of today and the later days that have runs.

Skipped runs and why

When a planned run cannot start, the Calendar marks it Skipped with a reason. AgentProof also sends a Scheduled run skipped alert to your Slack, Discord or webhook destinations that ask for it, with the sentence below. Missed runs send no alert. See Notifications.

Every skip reason

Every skip reason
The Calendar showsThe alert saysWhat to do
Missed(no alert)The run could not start within 24 hours of its planned time. Plan it again.
No active planThe workspace has no active plan.An owner or admin chooses a plan in Settings > Billing.
Domain not verifiedThe website's domain is not verified.Your website is missing, its domain is not verified, or you have not confirmed you may test it. Fix it in Settings > Website.
No code addedAdd your code in Settings.A Defense run needs your code: connect it in Settings > Code. For a repository or app project, its repository is no longer connected or its file is gone: fix it in Setup.
No agent hours leftNo agent hours left.Wait for your hours to reset, or ask an owner or admin to raise the spending cap in Settings > Billing.
Storage fullWorkspace storage is full.Your workspace has used all its storage. STORAGE in Settings > Billing shows how much it uses.
Swarm too largeThe swarm has more copies than AgentProof can run at once.Plan a swarm with fewer copies.
Workspace inactiveThe workspace is not active.The workspace cannot start runs.
Runs unavailableAgent runs are not available.AgentProof cannot start agent runs at the moment.

Messages when you plan a run

These messages appear in the tray, the day popup or the dashboard when a plan is refused:

  • Choose a plan to plan runs. The workspace has no active plan.
  • Add your website in Settings. No website is saved. Open Setup to add a website project.
  • Verify this domain in Settings first. The domain is not verified, or you have not confirmed you may test the website.
  • No agent hours left to plan another run. Every hour you have left is already used or held. A swarm needs one hour for each copy.
  • Choose today or a later day. You dropped an agent on a past day.
  • Choose a later time. The time you chose has already passed.
  • Choose 1 to 12 copies. Set Copies within the range the message names.
  • This run has already started. You tried to move or remove a run that started.
  • Auto schedule needs a plan with agent hours. Your plan has no hours to plan.
  • No days are left before your hours reset. There is no day left to place runs on before your hours reset. Plan runs one by one instead.

Last updated