Fix fabric path search, read scope, orbit total ranking, and edge menu clamp.

Prefer BFS shortest paths, allow ne:read on path find, honor objective=total clearance trades, and keep context menus on-screen without a11y clock spam.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-10 21:31:50 +08:00
parent 298859e608
commit e4a135ec16
13 changed files with 163 additions and 30 deletions

View file

@ -141,6 +141,9 @@ def required_scope_for_request(method: str, path: str) -> str | None:
return SCOPE_NE_READ
if p.startswith("/v1/topology"):
# Read-only path search uses POST for a structured body.
if m == "POST" and p.rstrip("/").endswith("/fabric/paths"):
return SCOPE_NE_READ
if m in ("POST", "PUT", "PATCH", "DELETE"):
return SCOPE_NE_WRITE
return SCOPE_NE_READ