{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://wanxiang.ai/contracts/templates/match.schema.json", "title": "MatchGameConfig", "description": "match(匹配解谜)模板 GameConfig 契约(HJ-AGENT-LOOP-EXEC-001 §6,owner=WS2)。GamePackage 契约(#4)gameConfig 字段的模板级细化。真源=docs/agent-specs/2026-06-09-generation-spike/gen_spike.py:44-81 TEMPLATES.match(C1 spike 52/52 结构层已验口径),逐字段对齐;兼作 Prompt 治理门禁④静态校验对象。玩法:在 gridSize 网格内 moves 步数内消除/匹配。诚实边界(§1.2/评审版 §5.4):v1 仅契约落盘、不跑批——match runtime 未实现,本契约当前仅供结构层静态校验,不得据此宣称 match 可玩。", "type": "object", "required": ["templateId", "title", "theme", "gridSize", "moves", "matchLabel"], "additionalProperties": false, "properties": { "templateId": { "description": "玩法模板 ID,必须精确等于 \"match\"(真源 _enum(\"match\"):精确等值校验,防 LLM 跨模板串台)。", "const": "match" }, "title": { "description": "游戏标题,非空且非纯空白(真源 _is_str:len(strip)>0;pattern \\S 为其等价表达)。", "type": "string", "minLength": 1, "pattern": "\\S" }, "theme": { "description": "主题/氛围描述,非空且非纯空白(真源 _is_str),为生成与对抗评审提供题文一致性语境。", "type": "string", "minLength": 1, "pattern": "\\S" }, "gridSize": { "description": "网格边长,整数且 3≤gridSize≤6 含边界(真源 _int_in(3,6);布尔值不视为整数),即 gridSize×gridSize 的棋盘。", "type": "integer", "minimum": 3, "maximum": 6 }, "moves": { "description": "步数限制,整数且 10≤moves≤60 含边界(真源 _int_in(10,60);布尔值不视为整数)。须在限定步数内完成消除/匹配。", "type": "integer", "minimum": 10, "maximum": 60 }, "matchLabel": { "description": "匹配元素文案(贴合创意主题,如「福袋」),非空且非纯空白(真源 _is_str)。", "type": "string", "minLength": 1, "pattern": "\\S" } } }