task_pages__hierarchy__subtree_descendant_count¶
Identity¶
- Domain:
pages - Scene id:
hierarchy - Source path:
src/trace_tasks/tasks/pages/hierarchy/subtree_descendant_count.py - Task id:
task_pages__hierarchy__subtree_descendant_count
Program Contract¶
- Program schema:
org_chart.total_reports_under_manager(manager=resolved_label); scene=hierarchy; scope=one organization chart - Contract: count every visible employee below the named manager through all reporting levels, excluding the named manager.
- Public query contract: fixed
singlequery; the named manager is a sampled operand recorded in trace metadata. - Answer schema:
integer - Annotation schema:
bbox_setwith one box for every counted employee under the named manager. - Supported
query_id:single - Prompt query key:
subtree_descendant_count - scalar_annotation_checked=true
Reasoning Operations¶
Families: filtering, counting, topology
Prompt + Trace¶
- Prompt bundle:
pages_hierarchy_v1 - Scene key:
hierarchy_diagram - Task key:
org_chart_query - Prompt query key:
subtree_descendant_count - Trace records the public
query_id, prompt query key, sampled manager label, org-chart employee boxes, reporting lines, answer count, and counted employee ids. - Generation is deterministic from
instance_seed; answers and annotation come from the finalized hierarchy render metadata.
Rendering Notes¶
- The hierarchy scene is rendered as an organization chart with the CEO at the top and reporting lines between employees.
- User-facing prompts should avoid graph/tree terms such as node, leaf, subtree, path, and hop.