task_charts__table__absolute_difference_between_rows_over_year_interval¶
Public Contract¶
- Domain:
charts - Scene:
table - Source file:
src/trace_tasks/tasks/charts/table/absolute_difference_between_rows_over_year_interval.py - Prompt assets:
src/trace_tasks/resources/prompts/charts/table/charts_table_counting_v1.json,src/trace_tasks/resources/prompts/charts/table/charts_table_ranking_v1.json,src/trace_tasks/resources/prompts/charts/table/charts_table_statistics_v1.json, andsrc/trace_tasks/resources/prompts/charts/table/charts_table_temporal_v1.json - Query ids:
single
Program Contract¶
Program: abs(sum(values(row_a, years)) - sum(values(row_b, years))); output=integer_value; annotation=bbox_map(row_interval_span_by_row_label); scene=table; scope=absolute_difference_between_rows_over_year_interval
Candidate set: the visible table cells with row and column labels inside the absolute_difference_between_rows_over_year_interval objective scope.
Operands: prompt-bound labels, categories, series names, thresholds, intervals, references, and encoded chart values, plus the task's prompt-bound target operands when present.
Operation: evaluate abs over the candidate set using the filters, comparisons, aggregations, rankings, projections, or counterfactual edits named in the program expression; generation enforces a unique final answer.
Output binding: answer is the unspecified value bound by integer_value.
Annotation witnesses: unspecified witnesses bound by bbox_map(row_interval_span_by_row_label). The Annotation Contract below defines the prompt-facing witnesses.
Query ids: single.
Reasoning Operations¶
Families: aggregation, formula_evaluation
Contract Notes¶
This task uses the current source layout. Scene-local reusable code lives under src/trace_tasks/tasks/charts/table/shared/; public task files own objective logic, query selection, answer binding, and annotation binding.