task_symbolic__music_staff__transposed_pitch_pair_count¶
1) Identity¶
- Domain:
symbolic - Scene id:
music_staff - Task id:
task_symbolic__music_staff__transposed_pitch_pair_count - Objective contract:
transposed_pitch_pair_count
Program Contract¶
Program: music_staff.transposed_pitch_pair_count(scene=music_staff, scope=four_numbered_note_pairs, predicate=upward_interval_match, output=integer)
Candidate set: the four visible numbered note-pair ranges.
Operands: the two notes in each pair and the requested upward interval predicate.
Operation: compute the upward interval for each note pair and count pairs matching the requested interval.
Output binding: answer is the matching pair count as an integer.
Annotation witnesses: a homogeneous bbox_set of numbered note-pair range boxes that satisfy the requested interval.
Query ids: single.
Reasoning Operations¶
Families: filtering, counting, transformation
2) Scene + task contract¶
- Entities/relations: a rendered music-staff notation panel with marked notes, chords, measure ranges, option cards, or key signatures depending on the task objective.
- Supported
query_idvalues:single answer_gt.type:integer- Default
annotation_gt.type:bbox_set - Annotation schema:
bbox_set - Annotation witness policy: annotation marks numbered note-pair range boxes that satisfy the requested upward interval; non-target notes, nonmatching ranges, staff lines, and decorative background are not prompt-facing annotation.
| Query id | User-facing operation |
|---|---|
single |
The prompt asks the one stable objective contract for this task. |
3) Prompt contract¶
prompt_bundle_id:symbolic_music_staff_v1scene_key:music_stafftask_key:music_transposed_pitch_pair_count- Query keys: internal branch key from the generated trace; public single-operation tasks expose
query_id=singleafter registry normalization. - Output modes:
answer_only,answer_and_annotation
4) Determinism + constraints¶
- Deterministic generation and rendering from
instance_seed. - Answer and annotation are bound from the same finalized notation scene and projected bboxes.
- Count tasks construct the requested answer count before rendering; label tasks construct a unique target label by scene state.
- No semantic constraints are auto-relaxed after sampling.
5) Source files¶
- Task source:
src/trace_tasks/tasks/symbolic/music_staff/transposed_pitch_pair_count.py - Scene shared package:
src/trace_tasks/tasks/symbolic/music_staff/shared/ - Config:
src/trace_tasks/resources/configs/domains/symbolic/music_staff.yaml - Prompt asset:
src/trace_tasks/resources/prompts/symbolic/music_staff/symbolic_music_staff_v1.json - Focused tests:
tests/test_symbolic_notation_tasks.py