task_charts__single_series__observed_threshold_crossing_label¶
Contract¶
- Domain:
charts - Scene id:
single_series - Source implementation:
src/trace_tasks/tasks/charts/single_series/observed_threshold_crossing_label.py - Public task id:
task_charts__single_series__observed_threshold_crossing_label - Supported
query_idvalues:observed_above_threshold_crossing_label,observed_below_threshold_crossing_label - Query ids are internal replay metadata; scene style, label pool, mark count, and context mode are generation metadata.
Implementation¶
- Registered class:
trace_tasks.tasks.charts.single_series.observed_threshold_crossing_label.ChartsTrendObservedThresholdCrossingLabelTask - Prompt lookup:
src/trace_tasks/resources/prompts/charts/single_series/charts_trend_v1.json - Generation is deterministic from
instance_seed, explicit params, prompt bundle, renderer config, and code versions. - Answers and annotation are produced from the same metadata execution trace.
Program Contract¶
Program: first_label(filter_prefix(sequence(values), value(label) comparison threshold)); output=string_label; annotation=point(crossing_mark); scene=single_series; scope=observed_threshold_crossing_label
Candidate set: the visible marks in the ordered single-series chart inside the observed_threshold_crossing_label objective scope.
Operands: prompt-bound labels, categories, series names, thresholds, intervals, references, and encoded chart values, plus the active query id's comparator, direction, target role, or extremum focus when present.
Operation: evaluate first_label 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 string_label value bound by string_label.
Annotation witnesses: point witnesses bound by point(crossing_mark). Annotation marks the first observed threshold-crossing mark. Axes, legend, titles, captions, decorative context, and distractor text are context unless the task explicitly asks for them as annotation.
Query ids: observed_above_threshold_crossing_label, observed_below_threshold_crossing_label.
Reasoning Operations¶
Families: filtering, comparison, ranking
Annotation Contract¶
- Answer schema:
string_label. - Annotation schema:
point. - Annotation marks the first observed threshold-crossing mark.
- Axes, legend, titles, captions, decorative context, and distractor text are context unless the task explicitly asks for them as annotation.
Query Details¶
| Query id | Program signature | Answer schema | Annotation schema |
|---|---|---|---|
observed_above_threshold_crossing_label |
first_label.observed_crosses_above_threshold |
string_label |
point |
observed_below_threshold_crossing_label |
first_label.observed_crosses_below_threshold |
string_label |
point |