{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.invalid/c64-c128-foundry/project-brief-1.0.schema.json", "title": "C64/C128 Dev Foundry project brief", "description": "Structural schema for briefs (drafts and approved). Semantic rules (conflicts, cross-references, approval) are enforced by tools/Test-FoundryBrief.ps1; see docs/brief-format.md.", "type": "object", "required": ["schemaVersion", "status", "project"], "properties": { "schemaVersion": { "const": "1.0" }, "status": { "enum": ["draft", "approved"] }, "approval": { "type": ["object", "null"], "properties": { "approvedBy": { "type": "string" }, "approvedOn": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "notes": { "type": "string" } } }, "interview": { "type": ["object", "null"], "properties": { "startedOn": { "type": "string" }, "stage": { "enum": ["idea", "target", "first-release", "details", "toolchain", "plan", "destination", "review"] }, "openQuestions": { "type": "array", "items": { "type": "string" } }, "notes": { "type": "array", "items": { "type": "string" } } } }, "project": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 60 }, "slug": { "type": "string" }, "idea": { "type": "string" }, "summary": { "type": "string" }, "kind": { "enum": ["", "game", "utility", "demo", "tool", "education", "other"] }, "smallestUsefulVersion": { "type": "string" } } }, "destination": { "type": "string" }, "targets": { "type": "array", "items": { "$ref": "#/$defs/target" } }, "dualTarget": { "type": ["object", "null"], "properties": { "strategy": { "enum": ["c64-mode-on-both", "native-per-target", "multi-display"] }, "notes": { "type": "string" } } }, "buildLocation": { "enum": ["windows-cross", "on-commodore"] }, "onCommodore": { "type": ["object", "null"], "properties": { "targetTool": { "type": "string" }, "transfer": { "type": "string" }, "diskFormat": { "enum": ["d64", "d71", "d81"] }, "programName": { "type": "string", "maxLength": 16 } } }, "testing": { "type": "object", "properties": { "emulator": { "const": "vice" }, "realHardware": { "type": "object", "properties": { "requested": { "type": "boolean" }, "reason": { "type": "string" } } } } }, "scope": { "type": "object", "properties": { "firstRelease": { "type": "string" }, "inScope": { "type": "array", "items": { "type": "string" } }, "outOfScope": { "type": "array", "items": { "type": "string" } } } }, "requirements": { "type": "array", "items": { "type": "object", "required": ["id"], "properties": { "id": { "type": "string", "pattern": "^R\\d+$" }, "title": { "type": "string" }, "priority": { "enum": ["must", "should", "could"] }, "text": { "type": "string" }, "acceptance": { "type": "array", "items": { "type": "string" } }, "capabilities": { "type": "array", "items": { "$ref": "#/$defs/capability" } } } } }, "design": { "type": "object", "properties": { "controls": { "$ref": "#/$defs/decision" }, "visuals": { "$ref": "#/$defs/decision" }, "sound": { "$ref": "#/$defs/decision" }, "persistence": { "$ref": "#/$defs/decision" }, "fileFormats": { "$ref": "#/$defs/decision" }, "peripherals": { "$ref": "#/$defs/decision" }, "budgets": { "$ref": "#/$defs/decision" }, "other": { "type": "array", "items": { "allOf": [{ "$ref": "#/$defs/decision" }, { "required": ["topic"] }] } } } }, "capabilities": { "type": "array", "items": { "$ref": "#/$defs/capability" } }, "assumptions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "text": { "type": "string" }, "status": { "enum": ["default", "unverified", "confirmed"] } } } }, "openDecisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "topic": { "type": "string" }, "question": { "type": "string" }, "default": { "type": "string" }, "status": { "enum": ["open", "resolved"] } } } }, "toolchain": { "type": ["object", "null"], "properties": { "recipe": { "enum": ["cc65", "basic-petcat", "basic-onboard", "asm-onboard"] }, "language": { "$ref": "#/$defs/language" }, "recommended": { "type": "object", "properties": { "recipe": { "type": "string" }, "language": { "$ref": "#/$defs/language" } } }, "reasons": { "type": "array", "items": { "type": "string" } }, "alternatives": { "type": "array", "items": { "type": "object", "properties": { "option": { "type": "string" }, "whyNot": { "type": "string" } } } }, "override": { "type": ["object", "null"], "properties": { "requestedLanguage": { "$ref": "#/$defs/language" }, "requestedBy": { "type": "string" }, "reason": { "type": "string" }, "accepted": { "type": "boolean" } } }, "assumptionsToVerify": { "type": "array", "items": { "type": "string" } } } }, "starter": { "type": ["object", "null"], "properties": { "screenTitle": { "type": "string", "maxLength": 38 }, "expectedScreen": { "type": "string" }, "filesDir": { "type": "string" }, "requirements": { "type": "array", "items": { "type": "string" } }, "smokeChecks": { "type": "array", "items": { "type": "object", "required": ["row", "col", "text"], "properties": { "row": { "type": "integer", "minimum": 0, "maximum": 24 }, "col": { "type": "integer", "minimum": 0, "maximum": 79 }, "text": { "type": "string" }, "description": { "type": "string" }, "targets": { "type": "array", "items": { "type": "string" } } } } } } }, "milestones": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^M[1-9]\\d*$" }, "title": { "type": "string" }, "goal": { "type": "string" }, "tasks": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "text": { "type": "string" }, "requirements": { "type": "array", "items": { "type": "string" } }, "outcome": { "type": "string" }, "check": { "type": "string" } } } }, "manualTests": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "target": { "type": "string" }, "setup": { "type": "string" }, "steps": { "type": "array", "items": { "type": "string" } }, "expected": { "type": "array", "items": { "type": "string" } }, "requirements": { "type": "array", "items": { "type": "string" } } } } } } } } }, "$defs": { "capability": { "enum": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col", "mouse-1351"] }, "language": { "enum": ["basic-v2", "basic-7", "c", "asm-ca65", "mixed-c-asm", "asm-onboard"] }, "decision": { "type": "object", "properties": { "topic": { "type": "string" }, "value": { "type": "string" }, "source": { "enum": ["user", "default", "n/a", "open"] } } }, "target": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "platform": { "enum": ["c64", "c128-native", "c128-c64mode"] }, "display": { "enum": ["vicii-40", "vdc-80"] }, "video": { "enum": ["pal", "ntsc", "pal-ntsc"] }, "artifact": { "type": "string" }, "expectedBehavior": { "type": "string" }, "autostart": { "enum": ["prg", "disk"] }, "smokeLimitCycles": { "type": "integer", "minimum": 1000000 }, "disk": { "type": ["object", "null"], "properties": { "name": { "type": "string" }, "format": { "enum": ["d64", "d71", "d81"] }, "image": { "type": "string" }, "files": { "type": "array", "items": { "type": "object", "required": ["source", "name"], "properties": { "source": { "type": "string" }, "name": { "type": "string", "maxLength": 16 }, "type": { "enum": ["prg", "seq"] }, "convert": { "enum": [null, "ascii-to-petscii"] }, "lineEndings": { "enum": ["cr", "keep"] } } } } } } } } } }