AutoTest
One sentence in, a browser test out: run on a schedule, repaired when the page changes, and never forced to pass.
What it does
A sentence becomes a test
Write what to test in one line. AutoTest writes the test file and runs it in a real browser. With the arbiter configured, two models must agree on every check.
It repairs the route, not the check
When the page changes, it reads the new page, derives a fresh selector and patches the test. A cap of three attempts stops it looping.
It runs on a schedule
A scheduler runs the suites at set times, ranks tests by how likely they are to fail, and writes what changed in plain words.
How a test runs
The light runs a test whose selector broke overnight, then one that passes. The check itself is never touched.
Core responsibilities
Write the test
One sentence becomes a test file that runs in a real browser.
Run it on a schedule
It runs every suite at set times, most likely failures first, and reports each run's changes in plain words.
Repair the route, not the check
When the page moves, it derives a fresh selector from the new page and patches the test, in up to three attempts.
Keep what it learned
Verified selectors, anti-patterns and steps persist, so the next test inherits them.
Agree on every check
With the arbiter configured, two models must agree before a check passes.
AutoTest in figures
- 116test functions across eight filescounted in the repository
- 3repair attempts on a broken selector, cappeda cap in the code
- 2models must agree before a check passeswith the arbiter configured
- 0model calls on a healthy run: cached selectors replaythe selector cache
Counted in the repository, read from a run or set in the code. No figure is estimated.
AutoTestRunning
Why it is built this way
Three safeguards from our own audit, each one written into the code.
Apply for a seatA parser clears a repair, not a model
Repaired code runs only after a parser clears it. Imports must come from the test framework; shell, file and network access, eval and unparseable code are refused.
The repair reads the page
The repair step captures the page as it stands and takes the new selector from that capture.
A crash is not a broken test
A missing module, a syntax error or a browser that will not launch is caught before any repair starts. A fix for the wrong problem never reaches memory.
The code behind AutoTest
Three files from the repository, shown in turn. Select one to read it.
01const FORBIDDEN_IDENTIFIERS = new Set([02 "child_process",03 "spawn",04 "exec",05 "execSync",06 "fs",07 "http",08 "https",09 "net",10 "dgram",11 "cluster",12 "worker_threads",13 "eval",14 "globalThis",15]);01export const scheduledRunLog = pgTable("scheduled_run_log", {02 id: serial("id").primaryKey(),03 projectId: integer("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),04 triggeredAt: timestamp("triggered_at").defaultNow().notNull(),05 trigger: text("trigger").notNull(),06 testsEvaluated: jsonb("tests_evaluated"),07 testsRun: integer("tests_run").default(0).notNull(),08 passed: integer("passed").default(0).notNull(),09 failed: integer("failed").default(0).notNull(),10 notificationSent: boolean("notification_sent").default(false).notNull(),11 dreamSummary: text("dream_summary"),12});01function parsePlaywrightOutput(output: string): { passed: number; failed: number } {02 let passed = 0;03 let failed = 0;04 const passedMatch = output.match(/(\d+)\s+passed/);05 const failedMatch = output.match(/(\d+)\s+failed/);06 if (passedMatch) passed = parseInt(passedMatch[1], 10);07 if (failedMatch) failed = parseInt(failedMatch[1], 10);08 return { passed, failed };09}Bring the workflow that keeps breaking.
Our engineers work through it with you in a free 45-minute briefing.