{
  "slug": "requirements",
  "title": "Parent and child goals with four constraint kinds",
  "config": {
    "language": "en"
  },
  "request": {
    "input": "Implement the user module with sign-in and registration that can be developed in parallel. Sign-in requires an email verification code and must be enabled only after approval; prefer the existing styles. Do not modify the database anywhere in the module. Deliver Chinese user instructions."
  },
  "result": {
    "schemaVersion": "2.0-draft.6",
    "input": "Implement the user module with sign-in and registration that can be developed in parallel. Sign-in requires an email verification code and must be enabled only after approval; prefer the existing styles. Do not modify the database anywhere in the module. Deliver Chinese user instructions.",
    "status": "complete",
    "turn": {
      "kind": "request",
      "normalizedInput": "Implement the user module with sign-in and registration that can be developed in parallel. Sign-in requires an email verification code and must be enabled only after approval; prefer the existing styles. Do not modify the database anywhere in the module. Deliver Chinese user instructions.",
      "intentIds": [
        "intent-5",
        "intent-6",
        "intent-7"
      ],
      "changes": [
        {
          "operation": "add",
          "target": {
            "kind": "intent",
            "id": "intent-5"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "intent",
            "id": "intent-6"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "intent",
            "id": "intent-7"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "constraint",
            "id": "constraint-4"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "constraint",
            "id": "constraint-5"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "constraint",
            "id": "constraint-6"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "constraint",
            "id": "constraint-7"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        },
        {
          "operation": "add",
          "target": {
            "kind": "relation",
            "id": "relation-1"
          },
          "description": "Add the explicit request from this turn",
          "sourceRefs": [
            {
              "root": "input",
              "pointer": ""
            }
          ],
          "effect": "applied"
        }
      ],
      "facts": {}
    },
    "effective": {
      "schemaVersion": "2.0-draft.6",
      "coverage": "complete",
      "scope": "current_request",
      "intents": [
        {
          "id": "intent-5",
          "domain": null,
          "action": "Implement",
          "target": "the user module",
          "goal": "Implement the user module",
          "understanding": "clear",
          "constraints": [
            {
              "id": "constraint-4",
              "kind": "prohibition",
              "text": "Do not modify the database",
              "scope": {
                "type": "intent",
                "intentId": "intent-5"
              }
            }
          ],
          "inputs": {},
          "references": [],
          "children": [
            {
              "id": "intent-6",
              "domain": null,
              "action": "Implement",
              "target": "sign-in",
              "goal": "Implement sign-in",
              "understanding": "clear",
              "constraints": [
                {
                  "id": "constraint-5",
                  "kind": "requirement",
                  "text": "Sign-in requires an email verification code",
                  "scope": {
                    "type": "intent",
                    "intentId": "intent-6"
                  }
                },
                {
                  "id": "constraint-6",
                  "kind": "precondition",
                  "text": "Enable sign-in only after approval",
                  "scope": {
                    "type": "intent",
                    "intentId": "intent-6"
                  }
                },
                {
                  "id": "constraint-7",
                  "kind": "preference",
                  "text": "Prefer the existing styles",
                  "scope": {
                    "type": "intent",
                    "intentId": "intent-6"
                  }
                }
              ],
              "inputs": {},
              "references": [],
              "children": [],
              "extensions": {}
            },
            {
              "id": "intent-7",
              "domain": null,
              "action": "Implement",
              "target": "registration",
              "goal": "Implement registration",
              "understanding": "clear",
              "constraints": [],
              "inputs": {},
              "references": [],
              "children": [],
              "extensions": {}
            }
          ],
          "extensions": {},
          "expectedOutput": [
            "Chinese user instructions"
          ]
        }
      ],
      "constraints": [],
      "relations": [
        {
          "id": "relation-1",
          "fromId": "intent-6",
          "toId": "intent-7",
          "kind": "parallel"
        }
      ],
      "unresolved": []
    },
    "fieldResults": [],
    "issues": [],
    "inferences": []
  }
}
