task_graph__pedigree_chart__relationship_label¶
Summary¶
- Domain:
graph - Scene id:
pedigree_chart - Source package:
src/trace_tasks/tasks/graph/pedigree_chart/relationship_label.py - Task id:
task_graph__pedigree_chart__relationship_label - Objective: select the rendered option letter that gives the family relationship of one labeled person to another.
Program Contract¶
Program: select(option_label where option_value == relationship(person_a, person_b)); output=option_letter; annotation=bbox_set(person_symbol_witnesses); scene=pedigree_chart; scope=relationship_label
Candidate set: the visible graph, tree, network, route, matrix, table, node, edge, label, weight, path, and option elements inside the relationship_label objective scope.
Operands: visible scene state and prompt-bound operands named by option_label, where, option_value, relationship, person_a, person_b, person_symbol_witnesses, pedigree_chart, relationship_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
Answer And Annotation¶
- Answer type:
option_letter. - Annotation schema:
bbox_set. - Annotation boxes mark the queried people plus any intermediate/shared person symbols in the family connection.
- Role-to-person ids 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 relationship 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.