{
  "format": "dev-hub.plan",
  "schemaVersion": 1,
  "project": {
    "title": "Team planner - first release",
    "brief": "Deliver an invitation-only web application where team members sign in and access their assigned work. This example demonstrates the portable plan format. Replace it with the real product requirements.",
    "workType": "new",
    "platforms": [
      "web-app",
      "backend-api"
    ],
    "mobileCodebase": "shared",
    "launchStrategy": "together",
    "launchOrder": [
      "web-app"
    ],
    "startDate": "",
    "targetDate": "",
    "holidays": [],
    "repositoryUrl": ""
  },
  "features": [
    {
      "id": "F-sign-in",
      "name": "Team member sign-in",
      "module": "Accounts and access",
      "description": "An invited member authenticates and reaches the work area they are permitted to access.",
      "priority": "must",
      "scope": "included",
      "platformWork": [
        {
          "platform": "web-app",
          "intent": "build",
          "gaps": []
        },
        {
          "platform": "backend-api",
          "intent": "build",
          "gaps": []
        }
      ],
      "requirements": [
        "Support the agreed account identity method.",
        "Protect the authenticated work area and API."
      ],
      "userFlow": [
        "Open the sign-in screen.",
        "Complete authentication.",
        "Open the permitted work area."
      ],
      "acceptanceCriteria": [
        "An invited member can sign in and open their permitted work area.",
        "Invalid credentials do not reveal private data or open a session."
      ],
      "dependencies": [],
      "evidence": [
        "Proposed requirement; no implementation verification is claimed."
      ]
    },
    {
      "id": "F-mobile-alerts",
      "name": "Mobile work alerts",
      "module": "Notifications",
      "description": "A later release may notify developers about assigned work on Android.",
      "priority": "later",
      "scope": "later",
      "platformWork": [
        {
          "platform": "android",
          "intent": "build",
          "gaps": [
            "Mobile client is outside this delivery."
          ]
        }
      ],
      "requirements": [
        "Notify the correct developer about assigned work."
      ],
      "userFlow": [
        "Receive a work notification.",
        "Open the related task."
      ],
      "acceptanceCriteria": [
        "A work alert opens the correct permitted task."
      ],
      "dependencies": [],
      "evidence": [
        "Later product idea; not scheduled in this delivery."
      ]
    }
  ],
  "risks": [
    "Identity provider configuration may affect implementation effort."
  ],
  "questions": [
    "Confirm the team identity provider before approving the plan."
  ],
  "plan": {
    "summary": "Implement, verify and release invitation-only sign-in for the web application and shared API.",
    "assumptions": [
      {
        "text": "Confirm the identity provider and access rules before starting implementation.",
        "blocking": true
      },
      {
        "text": "Review external estimates against the actual code and available team capacity.",
        "blocking": true
      }
    ],
    "milestones": [
      {
        "id": "M-build",
        "title": "Sign-in ready for verification",
        "description": "Implement the agreed invitation-only sign-in behavior.",
        "phase": "build",
        "platforms": [
          "web-app",
          "backend-api"
        ],
        "dependsOnMilestones": [],
        "deliverables": [
          {
            "id": "D-sign-in",
            "title": "Working sign-in and protected work area",
            "platforms": [
              "web-app",
              "backend-api"
            ],
            "featureIds": [
              "F-sign-in"
            ],
            "checks": [
              "An invited member can sign in and open their permitted work area.",
              "Invalid credentials do not reveal private data or open a session."
            ],
            "tasks": [
              {
                "id": "T-api",
                "title": "Implement protected authentication API",
                "description": "Implement session validation and access checks using the agreed identity provider.",
                "skill": "backend",
                "lowHours": 4,
                "highHours": 8,
                "dependsOn": []
              },
              {
                "id": "T-web",
                "title": "Implement member sign-in screens",
                "description": "Build sign-in, loading and failure states and connect them to the authentication API.",
                "skill": "frontend",
                "lowHours": 4,
                "highHours": 8,
                "dependsOn": [
                  "T-api"
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "M-quality",
        "title": "Access behavior verified",
        "description": "Verify account access and important failure paths.",
        "phase": "quality",
        "platforms": [
          "web-app",
          "backend-api"
        ],
        "dependsOnMilestones": [
          "M-build"
        ],
        "deliverables": [
          {
            "id": "D-quality",
            "title": "Verified sign-in and access boundaries",
            "platforms": [
              "web-app",
              "backend-api"
            ],
            "featureIds": [
              "F-sign-in"
            ],
            "checks": [
              "An invited member can sign in and open their permitted work area.",
              "Invalid credentials do not reveal private data or open a session."
            ],
            "tasks": [
              {
                "id": "T-test",
                "title": "Verify authentication and access boundaries",
                "description": "Test successful sign-in, invalid credentials, expired sessions and unauthorized access.",
                "skill": "qa",
                "lowHours": 2,
                "highHours": 4,
                "dependsOn": [
                  "T-web"
                ]
              },
              {
                "id": "T-review",
                "title": "Review the tested sign-in behavior",
                "description": "Review code and recorded test evidence against the acceptance criteria.",
                "skill": "lead",
                "lowHours": 1,
                "highHours": 2,
                "dependsOn": [
                  "T-test"
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "M-release",
        "title": "Release and handover verified",
        "description": "Deploy, verify and document the delivered version.",
        "phase": "release",
        "platforms": [
          "web-app",
          "backend-api"
        ],
        "dependsOnMilestones": [
          "M-quality"
        ],
        "deliverables": [
          {
            "id": "D-release",
            "title": "Verified production release and handover",
            "platforms": [
              "web-app",
              "backend-api"
            ],
            "featureIds": [],
            "checks": [
              "The live application URL and deployed version are recorded.",
              "Production smoke checks and handover review pass."
            ],
            "tasks": [
              {
                "id": "T-deploy-api",
                "title": "Deploy and verify the shared API",
                "description": "Record the backend revision and verify production authentication configuration.",
                "skill": "backend",
                "lowHours": 1,
                "highHours": 2,
                "dependsOn": [
                  "T-review"
                ]
              },
              {
                "id": "T-deploy-web",
                "title": "Deploy and verify the web application",
                "description": "Record the live URL and deployed version and verify the sign-in journey.",
                "skill": "frontend",
                "lowHours": 1,
                "highHours": 2,
                "dependsOn": [
                  "T-deploy-api"
                ]
              },
              {
                "id": "T-handover",
                "title": "Complete operating notes and handover",
                "description": "Record setup, ownership, maintenance and recovery instructions without credentials.",
                "skill": "lead",
                "lowHours": 1,
                "highHours": 2,
                "dependsOn": [
                  "T-deploy-web"
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}