task_graph__phylogeny_tree__sister_leaf_label¶
Summary¶
- Domain:
graph - Scene id:
phylogeny_tree - Source package:
phylogeny_tree - Task id:
task_graph__phylogeny_tree__sister_leaf_label - Objective: identify the sister taxon leaf of a queried taxon.
Program Contract¶
Program: select(label(leaf) where shares_immediate_parent(leaf, queried_leaf)); output=string; annotation=point(sister_leaf_center); scene=phylogeny_tree; scope=sister_leaf_label
Candidate set: the visible graph, tree, network, route, matrix, table, node, edge, label, weight, path, and option elements inside the sister_leaf_label objective scope.
Operands: visible scene state and prompt-bound operands named by label, leaf, where, shares_immediate_parent, queried_leaf, sister_leaf_center, phylogeny_tree, sister_leaf_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 string schema; generation binds a unique final answer.
Annotation witnesses: annotation uses the point schema; the prompt/annotation contract defines the minimal visual witnesses.
Query ids: single.
Reasoning Operations¶
Families: topology
Query IDs¶
- Supported
query_id:single. - The prompt objective key is
sister_leaf_label; it is trace metadata, not a public query branch.
Answer And Annotation¶
- Answer type:
string. - Annotation schema:
point. - Annotation is the center point of the answer sister taxon leaf.
- Query leaf, sister leaf, and shared-parent ids are recorded in trace metadata.
Rendering Contract¶
- The scene renders a rooted cladogram with labeled terminal taxa.
- Leaf labels are prompt-facing taxon labels; internal branch points are unlabeled.
- Annotation projection is computed after final layout and style placement.
Prompt Contract¶
- Prompt text comes from
src/trace_tasks/resources/prompts/graph/phylogeny_tree/graph_phylogeny_tree_v1.json. - Answer mode emits
{"answer": ...}. - Answer-and-annotation mode emits
{"annotation": ..., "answer": ...}with annotation matching the schema above.