task_illustrations__rpg_dungeon__monster_chamber_count¶
Summary¶
- Domain:
illustrations - Scene id:
rpg_dungeon - Implementation source scene:
rpg_dungeon - Implementation source:
src/trace_tasks/tasks/illustrations/rpg_dungeon/monster_chamber_count.py
Task Contract¶
Counts the treasure chambers that contain a visible monster in a top-down RPG dungeon.
Program Contract¶
Program: count(chamber, exists(monster in chamber) and chamber.layout_role=chest_room); scene=rpg_dungeon; scope=monster_chamber_count
Candidate set: the visible illustrated scene objects, people, regions, tiles, patches, labels, and option panels inside the monster_chamber_count objective scope.
Operands: visible scene state and prompt-bound operands named by chamber, exists, monster, layout_role, chest_room, rpg_dungeon, monster_chamber_count.
Operation: evaluate count over the candidate set using the visible illustrated objects, regions, layout relationships, counts, patch/tile transforms, or option-selection constraints encoded in the program expression; generation enforces a unique final answer.
Output binding: answer uses the integer schema; generation binds a unique final answer.
Annotation witnesses: annotation uses the bbox_set schema; the prompt/annotation contract defines the minimal visual witnesses.
Query ids: single.
Reasoning Operations¶
Families: filtering, counting, logical_composition
Query Branches¶
| Query id | Program schema |
|---|---|
single |
count(chamber, exists(monster in chamber) and chamber.layout_role=chest_room); scene=rpg_dungeon; scope=monster_chamber_count |
Program Metadata¶
- Program signatures:
count.containment_rooms - Base program contract:
count(chamber, exists(monster in chamber) and chamber.layout_role=chest_room); scene=rpg_dungeon; scope=monster_chamber_count - Parameter axes:
total_chest_count,monster_chamber_count,layout_orientation,side_counts,monster_object_type,canvas_profile - Arguments:
chamber: treasure chamber; allowed visible generated chest chambers; sourcescene_ir.chambersmonster: visible RPG dungeon monster; allowed generated slime, bat, or spider monsters; sourcescene_ir.entitiestotal_chest_count: integer; allowed4|5|6; sourceparameter_axesmonster_chamber_count: integer; allowed1|2|3|4and never greater thantotal_chest_count; sourceparameter_axes- Argument metadata status:
curated - Supported query ids:
single
Answer Contract¶
- Answer schema:
integer - Generator
answer_gt.type:integer - The answer is the number of visible treasure chambers containing at least one monster. Each monster-containing chamber has exactly one visible monster by construction.
- Answer range:
1..4
Annotation Contract¶
- Annotation schema:
bbox_set - Generator
annotation_gt.type:bbox_set - Annotation contains one bounding box around each visible monster in a counted treasure chamber.
- Annotation excludes chests, player, walls, floors, corridors, and empty chambers.
Prompt And Trace Requirements¶
- Prompt text must come from
src/trace_tasks/resources/prompts/illustrations/rpg_dungeon/illustrations_rpg_dungeon_v0.json. - Public prompts use
chambers, notrooms, for this scene. - Render-only attributes such as palette, monster type, chamber positions, layout orientation, side counts, and canvas profile must not be query ids.
- Chamber ids, monster entity ids, monster chamber ids, monster bboxes, layout orientation, side counts, total chest count, projected bbox-set annotation, and diagnostic entity bboxes must be recorded in the trace.