# Create an importable Dev Hub plan

I use Dev Hub to track developer delivery. Plan this product with me in this Codex chat, then create a UTF-8 JSON file named dev-hub-plan.json using the attached schema and example. Dev Hub imports the file locally; it will not call an AI or regenerate your tasks.

Read the product documents and, for an existing product, inspect the repository. Clarify material missing decisions with me. Preserve detailed features rather than reducing the product to a few module names. Produce the actual milestones, deliverables, acceptance checks, tasks, estimates and dependencies.

## File rules

- Root format is dev-hub.plan and schemaVersion is 1. Use exactly the schema fields; no Markdown fences, comments, trailing commas or runtime status fields.
- project contains title, full brief, workType (new/improvement), delivery platforms, mobile codebase, launch strategy/order, start/target dates, holidays and repository URL. Unknown dates and repository URL are empty strings. Do not invent deadlines. platforms and launchOrder use website, web-app, android, ios, backend-api. Launch order includes selected clients once each; backend appears only when it is the sole target.
- features contains the full inventory, up to 200 individual features. Each has an ID, module, description, priority, included/later/excluded scope, platformWork with per-platform intent and gaps, requirements, ordered userFlow, acceptanceCriteria, dependency feature IDs and honest evidence/source notes. Do not claim file presence proves working behavior.
- Included non-none platform work must be within project.platforms. Later/excluded features may target other future platforms and remain in the inventory, but have no scheduled deliverables. Avoid feature dependencies on later/excluded scope; a genuinely verified existing prerequisite can instead be explained as baseline evidence.
- plan has summary, assumptions and 2-20 milestones. Milestone phases are scope, design, build, quality, release. IDs are unique across every milestone, deliverable and task. Use stable distinct IDs for features too.
- Each milestone has description, platforms, dependsOnMilestones and 1-12 deliverables. Each deliverable has platforms, featureIds, title, 1-8 acceptance checks and 1-12 tasks. Use featureIds: [] for cross-project setup or release work. Later/excluded features must not be referenced by scheduled deliverables.
- Cover EVERY included feature/platform work record with a linked deliverable. Copy each feature acceptance criterion exactly into the checks of its linked deliverables on each work platform. A feature can use several deliverables to separate its work.
- Tasks have id, title, description, skill, lowHours, highHours and dependsOn (task IDs). Skills: lead, design, frontend, backend, qa, any. Estimates are proposed hour ranges: low 0.5-160, high 0.5-240, high >= low. Maximum 320 tasks. Do not invent available team members or assign accepted/completed states.
- Dependencies must be known and acyclic. Milestone dependencies must include the milestone of every cross-milestone task prerequisite. Do not confuse milestone IDs with task IDs.
- Include quality and release milestones for each delivery platform. A joint release depends on every quality milestone. Staged releases have separate platform QA milestones and exactly one release milestone per platform, follow launchOrder and depend on shared API release when selected. An earlier client release must not wait for later client QA. Every release has the necessary QA milestones upstream.
- Share API work and shared mobile implementation where appropriate; verify Android and iOS separately. Match per-platform work intent: verify existing behavior, complete gaps, fix defects, or build missing behavior. Avoid scheduling a full rebuild just because a feature was discovered.
- Include scope/estimate assumptions, risks and unresolved questions. No credentials or secret values. Repository URL is blank or https://github.com/owner/repository. Source paths and revision references belong in feature evidence notes.
- Preserve all inventory detail. If a release would exceed the limits or the 500 KB upload limit, discuss a smaller release while retaining later features; never silently omit requested work. Keep detailed descriptions concise enough to fit field limits.

## Revisions and validation

Download/extract the planning kit and run the bundled validator with Node 20 or newer:

    node validate-dev-hub-plan.mjs dev-hub-plan.json
    node validate-dev-hub-plan.mjs dev-hub-plan.json --json

It needs no npm install or API key. Fix every validation error before returning the file. Include its validation report with your summary.

To revise an existing project, ask me for the exported current plan and progress context from Dev Hub's Revisions tab. Keep revisionOf metadata intact. Reuse all existing feature, milestone, deliverable and task IDs for the same work. Never recycle an old ID for different work. Keep started/completed tasks' scope, estimates, dependencies and location unchanged; add follow-up tasks with new IDs. Preserve completed work in the full plan; progress is read-only context, not trusted input to the importer. A revised file is uploaded to the existing project's Revisions tab. Active changes are proposed and reviewed before applying.

## Before returning the file

Validate the JSON against the supplied schema, then check references, coverage, date order, estimates, launch dependencies and every acceptance check. Leave all unknown dates blank and record questions. Save the completed file as dev-hub-plan.json. Also give me a short readable summary; the upload file itself must contain JSON only.

The example is fictional and only demonstrates structure. Replace its content with my product; do not accidentally import its example feature or tasks.

## JSON Schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "const": "dev-hub.plan"
    },
    "schemaVersion": {
      "type": "number",
      "const": 1
    },
    "revisionOf": {
      "type": "object",
      "properties": {
        "projectId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "projectVersion": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "planFingerprint": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      },
      "required": [
        "projectId",
        "projectVersion",
        "planFingerprint"
      ],
      "additionalProperties": false
    },
    "project": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 3,
          "maxLength": 100
        },
        "brief": {
          "type": "string",
          "minLength": 30,
          "maxLength": 8000
        },
        "workType": {
          "type": "string",
          "enum": [
            "new",
            "improvement"
          ]
        },
        "platforms": {
          "minItems": 1,
          "maxItems": 5,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "website",
              "web-app",
              "android",
              "ios",
              "backend-api"
            ]
          }
        },
        "mobileCodebase": {
          "type": "string",
          "enum": [
            "shared",
            "separate"
          ]
        },
        "launchStrategy": {
          "type": "string",
          "enum": [
            "together",
            "staggered"
          ]
        },
        "launchOrder": {
          "minItems": 1,
          "maxItems": 5,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "website",
              "web-app",
              "android",
              "ios",
              "backend-api"
            ]
          }
        },
        "startDate": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "string",
              "const": ""
            }
          ]
        },
        "targetDate": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "string",
              "const": ""
            }
          ]
        },
        "holidays": {
          "maxItems": 120,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "repositoryUrl": {
          "type": "string",
          "maxLength": 240
        }
      },
      "required": [
        "title",
        "brief",
        "workType",
        "platforms",
        "mobileCodebase",
        "launchStrategy",
        "launchOrder",
        "startDate",
        "targetDate",
        "holidays",
        "repositoryUrl"
      ],
      "additionalProperties": false
    },
    "features": {
      "minItems": 1,
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "module": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "minLength": 5,
            "maxLength": 2400
          },
          "priority": {
            "type": "string",
            "enum": [
              "must",
              "should",
              "later"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "included",
              "later",
              "excluded"
            ]
          },
          "platformWork": {
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "website",
                    "web-app",
                    "android",
                    "ios",
                    "backend-api"
                  ]
                },
                "intent": {
                  "type": "string",
                  "enum": [
                    "build",
                    "complete",
                    "fix",
                    "verify",
                    "none"
                  ]
                },
                "gaps": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 600
                  }
                }
              },
              "required": [
                "platform",
                "intent",
                "gaps"
              ],
              "additionalProperties": false
            }
          },
          "requirements": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 600
            }
          },
          "userFlow": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 600
            }
          },
          "acceptanceCriteria": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 5,
              "maxLength": 300
            }
          },
          "dependencies": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "evidence": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 600
            }
          }
        },
        "required": [
          "id",
          "name",
          "module",
          "description",
          "priority",
          "scope",
          "platformWork",
          "requirements",
          "userFlow",
          "acceptanceCriteria",
          "dependencies",
          "evidence"
        ],
        "additionalProperties": false
      }
    },
    "risks": {
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 600
      }
    },
    "questions": {
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 600
      }
    },
    "plan": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string",
          "minLength": 10,
          "maxLength": 1600
        },
        "assumptions": {
          "maxItems": 16,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "minLength": 5,
                "maxLength": 400
              },
              "blocking": {
                "type": "boolean"
              }
            },
            "required": [
              "text",
              "blocking"
            ],
            "additionalProperties": false
          }
        },
        "milestones": {
          "minItems": 2,
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "title": {
                "type": "string",
                "minLength": 3,
                "maxLength": 120
              },
              "description": {
                "type": "string",
                "minLength": 5,
                "maxLength": 600
              },
              "phase": {
                "type": "string",
                "enum": [
                  "scope",
                  "design",
                  "build",
                  "quality",
                  "release"
                ]
              },
              "platforms": {
                "minItems": 1,
                "maxItems": 5,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "website",
                    "web-app",
                    "android",
                    "ios",
                    "backend-api"
                  ]
                }
              },
              "dependsOnMilestones": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "deliverables": {
                "minItems": 1,
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "title": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 160
                    },
                    "platforms": {
                      "minItems": 1,
                      "maxItems": 5,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "website",
                          "web-app",
                          "android",
                          "ios",
                          "backend-api"
                        ]
                      }
                    },
                    "checks": {
                      "minItems": 1,
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 5,
                        "maxLength": 300
                      }
                    },
                    "tasks": {
                      "minItems": 1,
                      "maxItems": 12,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "title": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 160
                          },
                          "description": {
                            "type": "string",
                            "minLength": 5,
                            "maxLength": 1800
                          },
                          "skill": {
                            "type": "string",
                            "enum": [
                              "lead",
                              "design",
                              "frontend",
                              "backend",
                              "qa",
                              "any"
                            ]
                          },
                          "lowHours": {
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 160
                          },
                          "highHours": {
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 240
                          },
                          "dependsOn": {
                            "maxItems": 80,
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "description",
                          "skill",
                          "lowHours",
                          "highHours",
                          "dependsOn"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "featureIds": {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "platforms",
                    "checks",
                    "tasks",
                    "featureIds"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "title",
              "description",
              "phase",
              "platforms",
              "dependsOnMilestones",
              "deliverables"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "summary",
        "assumptions",
        "milestones"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "format",
    "schemaVersion",
    "project",
    "features",
    "risks",
    "questions",
    "plan"
  ],
  "additionalProperties": false
}
```

## Valid fictional example

```json
{
  "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"
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
```
