task_graph__pedigree_chart__relatedness_coefficient_label¶
Summary¶
- Domain:
graph - Scene id:
pedigree_chart - Source package:
src/trace_tasks/tasks/graph/pedigree_chart/relatedness_coefficient_label.py - Task id:
task_graph__pedigree_chart__relatedness_coefficient_label - 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¶
- Answer type:
option_letter. - Annotation schema:
bbox_set. - Annotation boxes mark the queried people plus any shared-ancestor/path person symbols used by the contributing ancestry paths.
- For unrelated pairs with coefficient
0, annotation marks the two queried people. - Role-to-person ids and contributing paths are recorded in trace metadata. The selected option is the answer, not annotation.
Rendering Contract¶
- The scene uses pedigree notation: squares are male individuals and circles are female individuals.
- Generation rows, individual labels, spouse connectors, and descent/sibling connectors are semantic.
- The queried people may be highlighted for scan support.
- Six fraction options are rendered inside the image.
Prompt Contract¶
- Prompt text comes from
src/trace_tasks/resources/prompts/graph/pedigree_chart/graph_pedigree_chart_v1.json. - Answer mode emits
{"answer": ...}. - Answer-and-annotation mode emits
{"annotation": ..., "answer": ...}with bbox-set annotation.