loopable / web /wiring_rows /wave42_f.py
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
e85dc2a verified
Raw History Blame Contribute Delete
3.14 kB
"""Wave 42, lane F — cross-fence wiring rows.
⛔ ONE LANE OWNS THIS FILE. A row lands in the SAME change as the wiring it asserts; the worker who
REQUESTS a wiring may not be the one who verifies it. Shape is `verify_wiring.py`'s exactly:
(feature, declaring_file, declaring_regex, mounting_file, mounting_regex)
Paths are relative to `aios-web/web/src/`.
"""
from __future__ import annotations
ROWS: list[tuple[str, str, str, str, str]] = [
("W42 C6 Route name opens its detail target in one click",
"customer-grid/RouteNav.tsx", r"onActiveRouteChange\(item\.id\)",
"customer-grid/MapView.tsx", r"onActiveRouteChange=\{setActiveRouteId\}"),
("W42 C6 Route duplicate is required and reaches its normalized door",
"customer-grid/RouteNav.tsx", r"onDuplicate: \(route: MapRouteDto\)",
"customer-grid/MapView.tsx", r"onDuplicate=\{duplicateNamedRoute\}"),
("W42 C6 Route share uses the established share dispatcher",
"customer-grid/RouteNav.tsx", r"onShare: \(route: MapRouteDto\)",
"customer-grid/MapView.tsx", r"onShare=\{shareNamedRoute\}"),
("W42 C6 post-create privacy prompt receives the new Route",
"customer-grid/RouteNav.tsx", r"createdRoute: MapRouteDto \| null;",
"customer-grid/MapView.tsx", r"createdRoute=\{createdRoute\}"),
# RE-AIMED 2026-08-31: the owner's *"exact same layout as views"* rail replaced `levelAt`'s
# one-level path with the Views rail's disclosure tree, so the old declaring literal names
# nothing. The WIRING this row exists to prove is unchanged and is what stays pinned: the
# host's folder list reaches the rail and the rail files Routes against it.
("W42 C6 Route folders ride the listing into a folder tree",
"customer-grid/RouteNav.tsx", r"const foldersByParent = useMemo\(",
"customer-grid/MapView.tsx", r"folders=\{routeFolders\}"),
("W42 C6 personal Route filing reaches the normalized folder door",
"customer-grid/RouteNav.tsx", r"onRouteMove: \(route: MapRouteDto, folderId: string \| null\)",
"customer-grid/MapView.tsx", r"onRouteMove=\{moveNamedRoute\}"),
("W42 C6 personal Route order is required and mounted",
"customer-grid/RouteNav.tsx", r"onRouteReorder: \(order: string\[\]\)",
"customer-grid/MapView.tsx", r"onRouteReorder=\{reorderNamedRoutes\}"),
("W42 C6 Route-folder create and rename doors are mounted",
"customer-grid/RouteNav.tsx", r"onFolderCreate: \(name: string, parent: string \| null\)",
"customer-grid/MapView.tsx", r"onFolderUpdate=\{updateNamedRouteFolder\}"),
("W42 C6 Route-folder delete is required and mounted",
"customer-grid/RouteNav.tsx", r"onFolderDelete: \(folder: MapRouteFolderDto\)",
"customer-grid/MapView.tsx", r"onFolderDelete=\{deleteNamedRouteFolder\}"),
("W42 C6 Route-folder order is required and mounted",
"customer-grid/RouteNav.tsx", r"onFolderReorder: \(order: string\[\]\)",
"customer-grid/MapView.tsx", r"onFolderReorder=\{reorderNamedRouteFolders\}"),
]
#: (what was deleted, file, the pattern that must NOT match, why it matters)
DELETIONS: list[tuple[str, str, str, str]] = []