Add combat semantics validator prompt assets

This commit is contained in:
2026-08-28 00:16:23 +00:00
parent fcfff3ad15
commit 6bc883dfb6
9 changed files with 348 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
Review only whether the proposed scene kind correctly represents substantive
active combat in the supplied transcript chunk under the shared combat policy.
Do not judge the scene title, summary, non-combat subtype, scene boundary, or
any other aspect of a scene description.
Return `approved` only when the proposed kind's combat status is supported;
approval does not endorse any other part of the scene description. Return
`combat_should_be_added` when a proposed non-combat kind omits substantive
active combat. Return `combat_should_be_removed` when a proposed `combat` kind
is unsupported. Give a concise, transcript-grounded explanation for every
verdict.

View File

@@ -0,0 +1,30 @@
id: dnd.scene_descriptions.validate_combat
version: "v1"
default_profile: dnd-extraction
inputs:
- name: transcript
required: true
content_type: application/json
- name: proposed_kind
required: true
content_type: text/plain
messages:
- role: system
content_file: ./sharedassets/common-dnd-system.md
- role: user
content_file: ./sharedassets/common-dnd-scene-combat-policy.md
- role: user
content_file: ./instructions.md
- role: user
content_file: ./proposed-kind.md
cache_control:
type: ephemeral
- role: user
content_file: ./sharedassets/common-dnd-transcript-chunk.md
cache_control:
type: ephemeral
output:
format: json
validation_mode: json_schema
schema_path: dnd_scene_combat_semantics_llm.v1.json
repair_attempts: 1

View File

@@ -0,0 +1,3 @@
The proposed scene kind is:
{{ input "proposed_kind" }}

View File

@@ -0,0 +1,18 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "notarius.dnd.scene_descriptions.combat_semantics.llm",
"type": "object",
"additionalProperties": false,
"required": ["verdict", "explanation"],
"properties": {
"verdict": {
"type": "string",
"enum": ["approved", "combat_should_be_added", "combat_should_be_removed"]
},
"explanation": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
}