M.HMuhammad Hashir
  • Work
  • Principles
  • Experience
  • Contact
WorkCV ↓
← All work

SymCloud·2026In active development

SymTest

An AI agent that tests web apps with many user roles

RoleSole engineer, building it for SymCloud's leadership

Problem

Testing apps with many user roles by hand is slow and misses permission bugs.

Actions

  • Built an AI agent that logs in as every role, explores the app and tests its forms.
  • AI chooses the moves, code judges the bugs, so every finding comes with evidence.
  • Runs on Temporal and Playwright; passwords never reach the AI.

Result

~85%

exploration coverage on public test apps

Architecture primary focus data outside
ROLE LOGINS · ENCRYPTEDTEMPORAL WORKFLOWMODEL — PICKS MOVESPLAYWRIGHTAPP UNDER TESTASSERTION ENGINEFINDINGS
ROLE LOGINS · ENCRYPTEDTEMPORAL WORKFLOWMODEL — PICKS MOVESPLAYWRIGHTAPP UNDER TESTASSERTION ENGINEFINDINGS

Details

Testing a portal with many roles by hand means repeating every flow once per role, checking what each can and cannot see, then logging in as admin to confirm the data. It's slow, easy to skip, and permission bugs are among the most expensive to miss.

SymTest takes a test site's address, a login for each role and an optional plain-English note on who may do what, and does that whole job. It is in active development.

The governing principle

AI is good at deciding where to look, and bad at being trusted with a verdict. So the AI is the brain, a browser driven by code is the hands, the database is the memory, and an assertion engine is the judge. The AI only picks the next move from a fixed list; code checks every move, refuses anything dangerous, and decides pass or fail by comparing facts. No evidence, no finding.

What a run does

Each role explores in its own browser. Roles then try the pages the others reached, which produces a role-by-page permission table. Forms are tested with valid, empty, special-character and over-long input; an admin checks what was saved; and a role without a button sends the request anyway, to confirm the server blocks it. Test data is marked and cleaned up afterwards.

The hard part

Making an AI explorer reliable and cheap

Early versions bounced between pages or pressed the same button again and again. The map and the order moved into code, a depth-first stack of pages, and the AI now chooses only within the current page, with repeats refused and limits on loops. Pages of the same kind are recognized by their structure and explored once. A step costs about a tenth of a cent.

Stack, and why

  • Temporalone durable workflow per run, with separate browser workers
  • Playwrighta browser per role, driven only by code
  • A model behind one interfaceswappable; chooses moves, never verdicts
  • PostgreSQLruns, findings and a knowledge graph of lessons

Next case study

Air-gapped Kubernetes →