Skip to content

task_graph__pedigree_chart__relatedness_coefficient_label

Summary

  1. Domain: graph
  2. Scene id: pedigree_chart
  3. Source package: src/trace_tasks/tasks/graph/pedigree_chart/relatedness_coefficient_label.py
  4. Task id: task_graph__pedigree_chart__relatedness_coefficient_label
  5. Objective: select the rendered option letter that gives the coefficient of relatedness between two labeled people.

Program Contract

Program: select(option_label where option_value == relatedness_coefficient(person_a, person_b)); output=option_letter; annotation=bbox_set(person_symbol_and_path_witnesses); scene=pedigree_chart; scope=relatedness_coefficient_label

Candidate set: the visible graph, tree, network, route, matrix, table, node, edge, label, weight, path, and option elements inside the relatedness_coefficient_label objective scope. Operands: visible scene state and prompt-bound operands named by option_label, where, option_value, relatedness_coefficient, person_a, person_b, person_symbol_and_path_witnesses, pedigree_chart, relatedness_coefficient_label. Operation: evaluate select over the candidate set using the visible graph structure, labels, weights, directions, reachability, paths, connectivity, or option-selection constraints encoded in the program expression; generation enforces a unique final answer. Output binding: answer uses the option_letter schema; generation binds a unique final answer. Annotation witnesses: annotation uses the bbox_set schema; the prompt/annotation contract defines the minimal visual witnesses. Query ids: single.

Reasoning Operations

Families: topology, formula_evaluation

Answer And Annotation

  1. Answer type: option_letter.
  2. Annotation schema: bbox_set.
  3. Annotation boxes mark the queried people plus any shared-ancestor/path person symbols used by the contributing ancestry paths.
  4. For unrelated pairs with coefficient 0, annotation marks the two queried people.
  5. Role-to-person ids and contributing paths are recorded in trace metadata. The selected option is the answer, not annotation.

Rendering Contract

  1. The scene uses pedigree notation: squares are male individuals and circles are female individuals.
  2. Generation rows, individual labels, spouse connectors, and descent/sibling connectors are semantic.
  3. The queried people may be highlighted for scan support.
  4. Six fraction options are rendered inside the image.

Prompt Contract

  1. Prompt text comes from src/trace_tasks/resources/prompts/graph/pedigree_chart/graph_pedigree_chart_v1.json.
  2. Answer mode emits {"answer": ...}.
  3. Answer-and-annotation mode emits {"annotation": ..., "answer": ...} with bbox-set annotation.