task_puzzles__balance_scale__weight_order_label¶
Program Contract¶
Program: select_option(balance_comparison_grammar, target=lightest_to_heaviest_order, unknowns=A|B|C, panels=3); scene=balance_scale; scope=weight_order_label
Candidate set: the visible balance-scale panels, object symbols, object counts, side relations, and query markers inside the weight_order_label objective scope.
Operands: visible scene state and prompt-bound operands named by balance_comparison_grammar, lightest_to_heaviest_order, unknowns, A, B, C, panels, balance_scale, weight_order_label.
Operation: evaluate select_option over the candidate set using the visible states, constraints, transforms, comparisons, counts, paths, or option-selection rules encoded in the program expression; generation enforces a unique final answer.
Output binding: answer uses the string schema; generation binds a unique final answer.
Annotation witnesses: annotation uses the bbox schema; scalar bbox marks the selected order option.
Query ids: single.
Reasoning Operations¶
Families: ranking, formula_evaluation, matching
2) Scene + task contract¶
- Entities/relations: Three pan-scale comparison panels over three unknown object labels, using direct-offset, shared-object-context, or aggregate comparison expressions, plus a query row with four visual order options.
- Supported
query_idvalues:single answer_gt.type:string- Annotation schema:
bbox - Alternate annotation forms: none
- Annotation witness policy: scalar bbox marks the selected order option.
- Overlap/touch policy: option bbox covers the selected option card, including its option label and order text.
3) Prompt contract¶
prompt_bundle_id:puzzles_balance_scale_v1scene_key:balance_scaletask_key:balance_scale_query- Optional query-id prompt mapping: public
singleuses prompt query keyweight_order_label. - Required slots:
- answer output:
answer_hint,json_example_answer_only - answer+annotation mode:
annotation_hint,answer_hint,json_example - JSON example validity rule: the example must use one selected-option bbox and one option-label answer.
- Variant counts: 5 scene templates, 5 query templates, and 5 output templates per output mode.
- Output modes:
answer_only,answer_and_annotation
4) Determinism + constraints¶
- Seed namespaces used: task-local object order/comparison namespaces plus shared balance scene/style/font/unit-size namespaces.
- Unique-answer policy: generated comparison panels must force a unique lightest-to-heaviest order over the configured weight support.
- Reject/resample conditions: identical pan expressions, redundant same numeric tokens on both sides, any panel count other than three, ambiguous order, non-four-option query row, or missing selected-option bbox raise and retry within
max_attempts. - No-auto-relaxation guarantee: semantic constraints are not relaxed; generation retries rather than accepting ambiguous comparisons.
5) Tests¶
- Determinism test:
tests/test_puzzles_balance_scale_tasks.py::test_weight_order_task_is_deterministic - Answer/annotation consistency test:
tests/test_puzzles_balance_scale_tasks.py::test_weight_order_task_emits_public_contract - Prompt metadata/placeholder test: covered by source-layout checks and prompt-system tests.
- Constraint-specific tests:
tests/test_puzzles_balance_scale_tasks.py::test_weight_order_comparisons_imply_one_option