Skip to content

QualityMax organizes work as projects containing test cases, with automation scripts and executions linked to the intent they verify. Preserve that traceability when importing an existing test-management catalog or moving browser tests from another framework.

For each migration, keep the source system available until counts, steps, expected results, automation links, and a representative execution have been reconciled. Use core concepts for the underlying data model.

Tests, Automation, Coverage, and Discovery provide the same platform scope: All, Web, Android, iOS, and Unassigned. A test case is included only when one of its linked automation scripts explicitly reports that platform in its public runner or execution metadata. When both are absent, the explicit browser-only Playwright or Cypress framework contract classifies the script as Web. A case with Android and iOS variants appears once in each matching scope. Missing, unsupported, or conflicting metadata is Unassigned; QualityMax does not infer a platform from script names or other framework values.

Coverage uses that same scoped case-to-script population. It reports linkage separately from execution health, and retains an unknown state when the loaded inventory is incomplete. Opening a coverage suite carries its selected platform into Tests.

Discovery jobs use their recorded platform where available. Generation proposals remain project-scoped because proposal records do not currently carry platform attribution; this does not claim a proposal-to-case-to-script lineage that the data does not provide.

Automatic customer handoffs after failed runs

Section titled “Automatic customer handoffs after failed runs”

Automatic handoffs are off by default. The project owner can enable Automatic customer handoffs in Project → Settings, authorizing maximum-effort Opus drafting using their hosted AI credits. Only the owner can change this setting or request a draft for a historical failed run. Team members can view existing drafts.

Only terminal runs with recorded failing tests qualify. Setup failures (including “No test files found”), candidate validation, and export sessions are excluded. A shared project budget allows one new generation attempt per UTC day, including failed or timed-out attempts. Identical sanitized evidence reuses a validated draft for up to 30 days, scoped to the project, owner, and selected model, without another model call. Drafting fails closed if the shared budget store is unavailable.

Open run details for the private Customer handoff and use Copy handoff after reviewing it. QualityMax never sends it to a customer or reruns tests while drafting. The draft distinguishes observed errors from hypotheses and includes safe verification and acceptance criteria. Coverage is bounded to five final failing test rows and 20 recent project runs; it does not establish that a failure is new or prove customer fault.

The Failed-run customer handoff action in model settings must resolve to an available maximum-effort Opus model. A cheaper tier default is never silently upgraded. Requests use native JSON output, a 600-second provider timeout, and no automatic provider retries. An unavailable or truncated reply leaves the test results intact; Retry draft is subject to the same daily budget. Model access, hosted credit limits, and project opt-in are checked again by the worker before drafting.

Enable Automatic customer handoffs in Project → Settings, then open an eligible failed run under Project → Runs. The Customer handoff section appears inside the run details:

State What appears
Draft queued or generating “Drafting your customer handoff automatically…”
Draft ready “AI draft · Review before sharing.”, the saved draft, and Copy handoff
Owner can request a historical draft or retry The credit-use and daily-attempt disclosure with Draft handoff or Retry draft
Draft unavailable to a team member A message explaining that only the owner can request drafts after enabling handoffs

The handoff is private project content. Copy handoff copies the text so you can review and share it yourself; it does not send anything. Enabling the setting applies to future eligible runs and does not generate drafts for earlier failures.

After trigger_framework_run, poll get_framework_run with the returned run_id and your project_id. Framework run IDs are separate from the automation execution IDs used by get_execution. Polling returns counts and handoff status without generating a draft or repeating its text. Use get_framework_handoff to read the complete saved draft. Reading a saved draft makes no new model call; your MCP client may separately charge for its own agent usage. Echo the returned handoff version as if_version_matches to avoid downloading unchanged text.

For an eligible failed run with automatic handoffs disabled, the owner receives a handoff_offer containing server-provided pricing, implications, and a suggested question. The client agent should present the disclosure, ask once, and wait for an explicit answer. Reading results or asking to run tests is not approval. Respect a refusal.

For example, a client such as Claude could show the following conversation. 230 credits is an illustrative estimate, not a current quote or fixed price. The agent must use the estimate returned by QualityMax.

Claude: Your run has a recorded test failure. Enable automatic customer handoffs for this project? Future eligible failed runs can create maximum-effort Opus drafts using the project owner’s hosted AI credits. Estimated usage is about 230 QualityMax credits per new draft; this is not a fixed price or credit cap. Actual usage may consume more credits, and failed or timed-out attempts may still incur credit charges. There is one new attempt per project per UTC day, and identical evidence can reuse a draft for 30 days. Sanitized failure evidence is sent to Anthropic. Drafts remain private for review; no tests are rerun and nothing is sent to customers. You can disable future drafting at any time.

You: Yes, enable automatic handoffs.

Claude, after QualityMax confirms the setting: Automatic handoffs are enabled for future eligible failed runs. This has not generated a draft for the run that already failed. I can request that separately with your approval.

Exact presentation depends on your MCP client. If you decline, the agent leaves automatic handoffs off. While a requested draft is queued or generating, the agent can report that status. Once ready, it can display the saved handoff for your review without another generation call.

QualityMax fills in the credit estimate using its current billing conversion and rounds up to whole credits. If the conversion is unavailable, the disclosure says that no credit estimate is available. Actual hosted AI usage determines the final credits consumed. The daily limit caps attempts, not credits. Disabling stops future drafting but does not cancel an in-flight model request. Review proposed causes before sharing a draft.

Each new draft uses the shared hosted AI billing workflow, attributed to the project owner under customer_handoff. Returned token usage, including thinking and provider-reported cache usage, determines the recorded cost and credit settlement. Empty, invalid, or truncated replies can still report billable usage. Reusing a saved draft creates no new model usage or credit charge. Wallet-backed model calls register a durable attempt before dispatch. Complete usage receipts and their cost-ledger entry are saved together, and credit settlement uses those receipts. Receipt retries never repeat the model request. If a provider fails without a complete usage receipt, settlement stays pending for up to 24 hours. Any portion still unverified at the deadline is waived and its reserved credits released. A later receipt remains visible for cost accounting but does not reopen that customer charge. A waiver does not establish that the provider charged nothing. Usage checkpoints contain token counts and model identifiers, never prompt, response, or thinking text.

set_customer_handoffs with enabled: true returns the disclosure without changing settings unless confirm_credit_spend: true is also supplied. The client must supply that confirmation only after the owner approves the disclosed implications and pricing. The confirmation flag records the client’s assertion; QualityMax cannot verify the human conversation inside another client. Only the project owner can change this setting, and enabling does not backfill historical runs. Disable it with enabled: false.

For a historical failed run or a retry, use request_framework_handoff. It requires the setting to be enabled and separate owner approval with confirm_credit_spend: true. Without confirmation it returns the disclosure without queuing a draft. The same reuse, credit, model-access, and daily-attempt checks apply. Queue acceptance does not guarantee generation; check get_framework_handoff for the saved outcome.

Both read tools accept the OAuth mcp:read scope and allow project team access. Changing the setting or requesting a draft requires mcp:write and project ownership. Draft text is evidence to review, not instructions for the client agent to execute.

Project instructions for preview and staging URLs

Section titled “Project instructions for preview and staging URLs”

Open Project → Settings → Agent instructions to give your coding agent a project-specific workflow for deployments whose domains change. Use Copy prompt for a one-time handoff, Copy skill for the full instructions, or Download SKILL.md to install them in your repository. The prompt includes your project ID; replace <PASTE_PREVIEW_URL> with the deployment you want tested.

The downloaded skill shows installation paths for Codex (.agents/skills/qualitymax-preview-<project-id>/SKILL.md) and Claude Code (.claude/skills/qualitymax-preview-<project-id>/SKILL.md). It requires your existing QualityMax MCP connection. Refresh it when project settings change.

Agents can retrieve the same instructions directly through MCP:

{
"tool": "get_project_agent_instructions",
"arguments": {
"project_id": 42,
"workflow": "preview-testing"
}
}

Replace 42 with your project ID. The tool is available in the core tool profile and accepts the read-only OAuth scope. get_test_capabilities also includes a discovery hint for it. Its response contains prompt, skill_markdown, installation_paths, a deterministic revision, and allowlisted saved project facts. Native mobile projects return available: false because this workflow tests web deployments.

For OAuth connections, mcp:read permits retrieving these instructions. Executing the workflow requires mcp:write for run_tests and for update_script when edits are authorized. A read-only connection can retrieve the handoff but needs a connection with mcp:write before executing tests or changing scripts. OAuth scopes do not replace user authorization or project access checks.

For API clients, GET /api/projects/{project_id}/agent-instructions?workflow=preview-testing returns the same content with success: true. It requires project access and does not change settings, create tests, or start executions. Responses use Cache-Control: private, no-store.

The workflow uses run_tests.base_url to select a deployment for saved scripts while leaving the project’s default URL unchanged. This override does not rewrite hardcoded URLs inside test code. Agents must check script portability, deployment identity, access, and the actual tested origin, then report execution IDs and real test counts. trigger_framework_run currently has no per-run URL override; test_deployed_environment creates new tests rather than rerunning a saved suite.

Application login profiles and Vercel Deployment Protection are separate access requirements. Do not place credentials or protection bypass tokens in prompts, skills, test code, or URLs. An enabled preview gate or an integration test ping alone does not prove a real deployment was tested. See execution tools for runner parameters and result inspection.