113 lines
5.2 KiB
JSON
113 lines
5.2 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"purpose": "One page moves from product contract to approved runtime through explicit, inspectable design, deconstruction, asset and implementation gates.",
|
|
"terminal_state": "COMPLETE",
|
|
"states": [
|
|
{
|
|
"id": "SPEC_READY",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["page-contract.json", "state-matrix.json"]
|
|
},
|
|
{
|
|
"id": "AI_DRAFT",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["drafts/<version>/prompt.txt", "drafts/<version>/manifest.json", "drafts/<version>/master-raw.png"]
|
|
},
|
|
{
|
|
"id": "DRAFT_REVIEW",
|
|
"owner_gate": true,
|
|
"required_artifacts": ["review/<version>.md"]
|
|
},
|
|
{
|
|
"id": "APPROVED_FOR_RECONSTRUCTION",
|
|
"owner_gate": true,
|
|
"required_artifacts": ["approved/<version>/master.png", "approved/<version>/manifest.json", "approved/<version>/owner-approval.md"]
|
|
},
|
|
{
|
|
"id": "DECONSTRUCTION_IN_PROGRESS",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["reconstruction/<version>/deconstruction-plan.json"]
|
|
},
|
|
{
|
|
"id": "DECONSTRUCTION_REVIEW",
|
|
"owner_gate": true,
|
|
"required_artifacts": ["approved/<version>/layer-map.json", "approved/<version>/text-slots.json", "approved/<version>/hit-areas.json", "reconstruction/<version>/deconstruction-review.md", "reconstruction/<version>/deconstruction-board.png"]
|
|
},
|
|
{
|
|
"id": "ASSET_GENERATION_IN_PROGRESS",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["reconstruction/<version>/asset-generation-plan.json"]
|
|
},
|
|
{
|
|
"id": "ASSET_REVIEW",
|
|
"owner_gate": true,
|
|
"required_artifacts": ["reconstruction/<version>/asset-manifest.json", "reconstruction/<version>/asset-contact-sheet.png", "reconstruction/<version>/asset-review.md"]
|
|
},
|
|
{
|
|
"id": "RECONSTRUCTION_READY",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["runtime/reconstruction-spec.json", "runtime/asset-manifest.json", "runtime/hit-areas.json"]
|
|
},
|
|
{
|
|
"id": "IMPLEMENTATION_IN_PROGRESS",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["runtime/reconstruction-spec.json", "runtime/asset-manifest.json", "runtime/hit-areas.json"]
|
|
},
|
|
{
|
|
"id": "IMPLEMENTED_AWAITING_OWNER_RUNTIME_REVIEW",
|
|
"owner_gate": false,
|
|
"required_artifacts": ["runtime/implementation.json", "verification/behavior.json", "verification/captures.json"]
|
|
},
|
|
{
|
|
"id": "VERIFIED_AWAITING_OWNER_ACCEPTANCE",
|
|
"owner_gate": true,
|
|
"required_artifacts": ["verification/behavior.json", "verification/input.json", "verification/responsive.json", "verification/captures.json"]
|
|
},
|
|
{
|
|
"id": "COMPLETE",
|
|
"owner_gate": true,
|
|
"required_artifacts": ["approved/<version>/manifest.json", "runtime/implementation.json", "verification/owner-acceptance.md"]
|
|
}
|
|
],
|
|
"allowed_transitions": [
|
|
["SPEC_READY", "AI_DRAFT"],
|
|
["AI_DRAFT", "DRAFT_REVIEW"],
|
|
["DRAFT_REVIEW", "AI_DRAFT"],
|
|
["DRAFT_REVIEW", "APPROVED_FOR_RECONSTRUCTION"],
|
|
["APPROVED_FOR_RECONSTRUCTION", "DECONSTRUCTION_IN_PROGRESS"],
|
|
["DECONSTRUCTION_IN_PROGRESS", "DECONSTRUCTION_REVIEW"],
|
|
["DECONSTRUCTION_REVIEW", "DECONSTRUCTION_IN_PROGRESS"],
|
|
["DECONSTRUCTION_REVIEW", "ASSET_GENERATION_IN_PROGRESS"],
|
|
["ASSET_GENERATION_IN_PROGRESS", "ASSET_REVIEW"],
|
|
["ASSET_REVIEW", "ASSET_GENERATION_IN_PROGRESS"],
|
|
["ASSET_REVIEW", "RECONSTRUCTION_READY"],
|
|
["RECONSTRUCTION_READY", "DECONSTRUCTION_IN_PROGRESS"],
|
|
["RECONSTRUCTION_READY", "IMPLEMENTATION_IN_PROGRESS"],
|
|
["IMPLEMENTATION_IN_PROGRESS", "RECONSTRUCTION_READY"],
|
|
["IMPLEMENTATION_IN_PROGRESS", "IMPLEMENTED_AWAITING_OWNER_RUNTIME_REVIEW"],
|
|
["RECONSTRUCTION_READY", "IMPLEMENTED_AWAITING_OWNER_RUNTIME_REVIEW"],
|
|
["IMPLEMENTED_AWAITING_OWNER_RUNTIME_REVIEW", "RECONSTRUCTION_READY"],
|
|
["IMPLEMENTED_AWAITING_OWNER_RUNTIME_REVIEW", "IMPLEMENTATION_IN_PROGRESS"],
|
|
["IMPLEMENTED_AWAITING_OWNER_RUNTIME_REVIEW", "VERIFIED_AWAITING_OWNER_ACCEPTANCE"],
|
|
["VERIFIED_AWAITING_OWNER_ACCEPTANCE", "RECONSTRUCTION_READY"],
|
|
["VERIFIED_AWAITING_OWNER_ACCEPTANCE", "IMPLEMENTATION_IN_PROGRESS"],
|
|
["VERIFIED_AWAITING_OWNER_ACCEPTANCE", "COMPLETE"]
|
|
],
|
|
"hard_gates": [
|
|
"No Godot implementation before RECONSTRUCTION_READY; design approval only authorizes deconstruction.",
|
|
"DECONSTRUCTION_REVIEW must confirm focal bounds, layer ownership, engine-text slots, responsive anchors and hit areas before asset generation.",
|
|
"ASSET_REVIEW must confirm every generated or processed asset, provenance, crop, scale and no-baked-text policy before reconstruction is ready.",
|
|
"No runtime asset is current authority until its source, prompt, task, processing and hash are recorded.",
|
|
"Behavior tests cannot close a visual owner gate.",
|
|
"A failed review returns to the earliest failed state and keeps later states frozen.",
|
|
"Only one page may be in an active implementation state at a time."
|
|
],
|
|
"required_runtime_matrix": {
|
|
"viewports": ["760x360", "844x390", "1280x720"],
|
|
"locales": ["zh_CN", "en"],
|
|
"text_scales": ["100", "130"],
|
|
"input": ["touch", "keyboard_or_controller_focus"],
|
|
"states": ["normal", "empty", "loading", "disabled", "error", "interruption"]
|
|
}
|
|
}
|