games-development-ai/contracts/play-loop/grouped-action-ref.schema.json
lili cbfd4d871b
Some checks failed
contract-gates / contract-gates (push) Has been cancelled
docs-gate / docs-gate (push) Has been cancelled
feat(acceptance): 闭合 playtest v3 与 A+ 可信消费链
固化 Match-3 生产者、视觉、音频与双 Judge 证据闭包。

将《山海行纪》r1.1 绑定新的不可变 release,并以生产预检现场核验 bundle、Registry/2 和 25 项 Writer 快照。

同步地图1平衡锁值、跨游戏回归修复、验收契约与 SoT 证据。
2026-07-28 20:16:13 -07:00

32 lines
1.3 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://wanxiang.ai/contracts/play-loop/grouped-action-ref.schema.json",
"title": "GroupedActionRefV1",
"description": "GroupedActionRef/1。runner 审计层把原生 tap 标成 first/second/reset不进入 ProofAction 或 JudgePackage。",
"type": "object",
"required": ["schemaVersion", "actionGroupId", "role", "actionId", "endpoint", "actionRef", "actionHash"],
"properties": {
"schemaVersion": { "const": "GroupedActionRef/1" },
"actionGroupId": { "type": "string", "pattern": "^action-group-[1-9][0-9]*$" },
"role": { "enum": ["first", "second", "reset"] },
"actionId": { "type": "string", "pattern": "^action-[1-9][0-9]*$" },
"endpoint": {
"anyOf": [
{ "$ref": "actor-selection-v2.schema.json#/$defs/swapEndpoint" },
{ "type": "null" }
]
},
"actionRef": { "type": "string", "minLength": 1 },
"actionHash": { "$ref": "#/$defs/sha256" }
},
"additionalProperties": false,
"allOf": [
{
"if": { "properties": { "role": { "const": "reset" } }, "required": ["role"] },
"then": { "properties": { "endpoint": { "type": "null" } } },
"else": { "properties": { "endpoint": { "type": "object" } } }
}
],
"$defs": { "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" } }
}