task_graph__metro__station_membership_count¶
Summary¶
- Domain:
graph - Scene id:
metro - Task id:
task_graph__metro__station_membership_count - Objective: count transfer stations.
- Implementation:
src/trace_tasks/tasks/graph/metro/station_membership_count.py.
Query IDs¶
- Supported public
query_idvalues:single. - Internal prompt/query metadata records
metro_transfer_station_count. - Public sampling is at the task-id level; route count, station labels, route colors, and style are internal generation axes.
Taxonomy Contract¶
- Program contract: count all station nodes served by at least two colored routes.
- Answer schema:
integer. - Annotation schema:
point_set. - Route count, station labels, route colors, style, font, background, and layout jitter are generation/render metadata, not public query branches.
Program Contract¶
Program: count(station where route_membership_count(station) >= 2); output=integer; annotation=point_set(transfer_station_centers); scene=metro; scope=station_membership_count
Candidate set: the visible graph, tree, network, route, matrix, table, node, edge, label, weight, path, and option elements inside the station_membership_count objective scope.
Operands: visible scene state and prompt-bound operands named by station, where, route_membership_count, transfer_station_centers, metro, and station_membership_count.
Operation: evaluate count 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 integer schema; generation binds a unique final answer.
Annotation witnesses: annotation uses the point_set schema; the prompt/annotation contract defines the minimal visual witnesses.
Query ids: single.
Reasoning Operations¶
Families: filtering, counting, comparison, topology
Answer And Annotation¶
- Answer type:
integer. - Annotation type:
point_set. - Annotation marks one
[x,y]station-center point per transfer station. - The answer equals the number of annotation points, and both come from the same finalized metro-route graph.
Rendering Contract¶
- The scene shows a labeled metro route map with colored routes and station nodes.
- Transfer stations are visually indicated by multi-route overlap and larger station styling.
- Visual style, fonts, panel treatment, layout jitter, context text, and post-render noise are non-semantic and recorded in trace metadata.
- Annotation projection is computed after final layout and style placement.
Prompt Contract¶
- Prompt text comes from
src/trace_tasks/resources/prompts/graph/metro/graph_metro_v1.json. scene_key:metro_route_map.task_key:metro_route_query.query_key:metro_transfer_station_count.- Answer mode emits
{"answer": ...}. - Answer-and-annotation mode emits
{"annotation": ..., "answer": ...}withannotationmatching thepoint_setschema.