{
  "id": "public-signup-registered",
  "name": "Reject a registered user on Signup",
  "authentication": "public",
  "risk": "mutating",
  "start": { "path": "/signup" },
  "variables": {
    "registeredEmail": {
      "env": ["E2E_LOGIN_EMAIL", "EMAIL"],
      "required": true
    }
  },
  "goal": [
    "Choose Sign up with Email. Fill the fields exactly: First Name = E2E, Last Name = Public, Work Email = {{registeredEmail}}, Password = Test1234S3sll.",
    "Verify Work Email contains exactly {{registeredEmail}} with no name prefix, accept the agreements, and submit Sign Up once.",
    "Verify the page shows an alert explaining that the already-registered account cannot be created again."
  ],
  "success": {
    "evidence": [
      { "kind": "url", "matches": "/signup(?:[/?]|$)" },
      { "kind": "roleVisible", "role": "alert" }
    ]
  },
  "limits": { "maxDurationMs": 120000, "maxActions": 16 },
  "safety": {
    "blockOtherApiMutations": false,
    "deny": ["Submit only the registered test email and never retry the signup request."]
  }
}
