task_puzzles__balance_scale__missing_object_weight_value¶
Program Contract¶
Program: solve_value(direct_and_compound_balance_equations, target=query_object_weight, unknowns=A|B|C, panels=3); scene=balance_scale; scope=missing_object_weight_value
Candidate set: the visible balance-scale panels, object symbols, object counts, side relations, and query markers inside the missing_object_weight_value objective scope.
Operands: visible scene state and prompt-bound operands named by direct_and_compound_balance_equations, query_object_weight, unknowns, A, B, C, panels, balance_scale, missing_object_weight_value.
Operation: evaluate solve_value 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 integer schema; generation binds a unique final answer.
Annotation witnesses: annotation uses the bbox schema; the scalar bbox marks the question-mark value box in the query row.
Query ids: single.
Reasoning Operations¶
Families: formula_evaluation
2) Scene + task contract¶
- Entities/relations: Three balanced pan-scale panels with three labeled unknown object tokens, numbered weights, at least one direct single-object value panel, at least one compound/context panel, and a query row showing one object equal to a question-mark value.
- Supported
query_idvalues:single answer_gt.type:integer- Annotation schema:
bbox - Alternate annotation forms: none
- Annotation witness policy: the scalar bbox marks the question-mark value box in the query row.
- Overlap/touch policy: annotation must be the rendered question-mark value box, not the surrounding query row, object token, panel, or scale bbox.
3) Prompt contract¶
prompt_bundle_id:puzzles_balance_scale_v1scene_key:balance_scaletask_key:balance_scale_query- Optional query-id prompt mapping:
missing_object_weight_valueis stored asprompt_query_key; the publicquery_idissingle. - 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 bbox and an integer answer valid for the task schema.
- 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 label/object/equation namespaces plus shared balance scene/style/font/unit-size namespaces.
- Unique-answer policy: the three equations must imply exactly one target object value over the configured support.
- Reject/resample conditions: any panel count other than three, missing direct target-value panel, unbalanced generated panels, target ambiguity, missing annotation bbox, or unsupported answer values raise and retry within
max_attempts. - No-auto-relaxation guarantee: semantic constraints are not relaxed; generation retries rather than accepting ambiguous equations.
5) Tests¶
- Determinism test:
tests/test_puzzles_balance_scale_tasks.py::test_balance_scale_task_is_deterministic - Answer/annotation consistency test:
tests/test_puzzles_balance_scale_tasks.py::test_balance_scale_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_balance_scale_equations_are_balanced_and_unique