Blog

How an AI agent tests a panel server, step by step

The test method we used on a live Ubuntu server: the levels, the naming, the result rules, token handling, the audit log check and the cleanup. Another agent can repeat it.

How an AI agent tests a panel server, step by step

2026-11-29

This guide describes the method we used on 29 November 2026 to test AI Hosting Panel on an Ubuntu 24.04 server, through its web pages, its API tools and its MCP endpoint. An AI agent can repeat it. Read the rules first, then follow the levels in order.

Rules before any write

  1. Get the owner's permission for each kind of write: create, change or remove. Without it, run the read-only checks only.
  2. Name every token, job and test object with the prefix agent-test- where the name allows a hyphen, for example agent-test-phone-read-20261129. Hosting account names take 3 to 32 lowercase letters or digits only, so use agenttest20261129. Database names and database logins take lowercase letters, digits and _ (agenttest_db). FTP login names take 2 to 16 lowercase letters or digits after the account's underscore.
  3. Write dates in names as YYYYMMDD (20261129), and in the text as YYYY-MM-DD (2026-11-29), so that a report and an audit entry name the same day.
  4. An agent never types a password, a token or a key into a field, even on a local test host. A person types them. The owner keeps one-time values in the owner's password manager.
  5. Keep a list of every object you create, with its id and type. The report and the cleanup need it.

The levels

  1. L0 Health: the health endpoint returns ok with the version. The OpenAPI document lists the routes.
  2. L1 Pages: an agent checks that every address in the sidebar answers 200, which the page shell does without a sign-in. A person opens each page signed in and checks that its heading and content show. Look for Internal error or Not found text.
  3. L2 System check: a person opens the System check page (/self-check) signed in. Each page shows Working, To check, Problem or Not available; To check and Problem are findings. An agent reads server_health instead: each check is ok, warning or critical, and a warning or critical check is a finding.
  4. L3 Read-only tools: each read tool returns a result. A missing outside account returns a clear message. That is blocked, not failed.
  5. L4 Write tests: one test object at a time. Create it, verify it, then remove it. For example: create an account, attach a domain, write a file and check that the page answers.
  6. L5 Approval checks: call a high-risk tool and confirm that it returns pending and changes nothing. Do not approve the request yourself.
  7. L6 Cleanup: list every object, and ask the owner for each permanent removal.

Tokens

  1. Create a token on the API Tokens page with a lifetime of one day and only the scopes the test needs. The form offers 15 scopes: server.read, audit.read, accounts.manage, domains.create, domains.edit, dns.edit, deploy.create, files.edit, databases.manage, apps.manage, support.manage, webhooks.manage, billing.manage, monitoring.read and monitoring.manage. It does not offer server.manage (firewall changes are made on the Firewall page by a person) or reseller.manage (the reseller tools refuse a token).
  2. The system check at /api/v1/self-check is for a person's session. A token gets 403 there. A token reads the same checks with the server_health tool.
  3. A person creates the token and gives it to the agent through the agent's secret store. An agent cannot create or revoke tokens. The agent sends the value only in the Authorization header and never prints it; in reports, use the token name only.
  4. Revoke the token when the test ends. Revoking it does not change any other token.

Check the audit log

  1. A person opens Audit Log (/audit) after the write tests, or an agent reads GET /api/v1/audit-logs with a token that has audit.read. On the Ubuntu server (panel 1.2.54) each change made with a token was listed under the token's prefix, with success or failed. Check the version first with server_health or /api/v1/health. On the Android build 1.2.52-termux.5 the entries carry no prefix, so this check does not apply there.
  2. Our run recorded database.create, domain.add, domain.add_subdomain, ftp.enable, and an action.request for every approval, each with its result.

Write the report

  1. One line per check: the object, the tool or page, the result, the id and the time.
  2. Mark a check blocked when a secret or an outside account is missing. Say who can supply it.
  3. Say which levels passed, and which were not run in that round, with the reason.

All posts