tessng-network-builder
Build TESSNG road networks live in the currently opened TESSNG project from staged modeling prompts, especially mixed-flow intersections and A-B-C arterial corridors with motor lanes, nonmotor lanes,…
正文
TESSNG Live Network Builder
Core Rule
Build in the currently opened TESSNG project. Do not copy a finished .tess, do not open a benchmark .tess, and do not save unless the user explicitly asks for saving.
Treat examples as modeling intent, not as files to reproduce. The skill exists to create the target by disciplined staged construction and self-checking.
Workflow
- Check the TESSNG AI HTTP gateway and runtime state.
- Confirm the current project is empty before destructive setup. If it is not empty, ask the user before clearing.
- Run staged construction with
scripts/build_live_network.py. - After every stage, query TESSNG read-only tools and compare the scene against that stage's acceptance checklist.
- If a stage fails, issue a repair prompt for that stage only, then re-check.
- Run final acceptance and report what exists in the live TESSNG scene.
Commands
Dry-run prompts without touching TESSNG:
python scripts/build_live_network.py --scenario abc-arterial --dry-runBuild in the live TESSNG project through the local HTTP gateway:
python scripts/build_live_network.py --scenario abc-arterial --base-url http://127.0.0.1:8000Build only a B-like mixed-flow intersection:
python scripts/build_live_network.py --scenario mixed-intersection --base-url http://127.0.0.1:8000Run one phase only:
python scripts/stage_05_pedestrian_regions.py --scenario mixed-intersection --base-url http://127.0.0.1:8000Stage Scripts
stage_01_preflight.py: gateway, tool list, current project state.stage_02_motor_geometry.py: intersection/corridor motor-road geometry.stage_03_lane_turns.py: lane functions, arrows, and motor connectors.stage_04_nonmotor.py: nonmotor lanes aligned with road directions.stage_05_pedestrian_regions.py: sidewalks, crosswalks, and corner fan areas.stage_06_pedestrian_paths.py: pedestrian paths and connectivity.stage_07_crosswalk_signals.py: two-direction crosswalk signal lamps.stage_08_signal_control.py: four-phase signal plans and green-wave offsets when applicable.stage_09_demand_routes.py: dispatch points, decision points, routes, and ratios.stage_10_detectors.py: flow collectors, queue counters, travel-time detectors.stage_11_acceptance.py: final object and geometry checklist.
Read references/modeling_contract.md for the non-negotiable modeling constraints and references/stage_prompts.md for the stage prompt text.