You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lens profile's graph reader: world_graph(world, reader, *, lens=None, as_of=None, clock=None, rooms=False, hidden=False, proposed=False, map_space=False) reads a world as nodes and edges for one reader, over the same snapshot and reader as resolve_lens, and returns a WorldGraph (nodes, edges, edges_cut, cut, unreadable). Pure: nothing is stored or written. A node (GraphNode) is {id, type, name, family, icon}, family and icon from the distribution's presentation defaults (now generated into _schema.py as ELEMENT_FAMILIES and ELEMENT_ICONS), with marks (room, hidden, proposed) on an element of a kind that is out by default and known_of: True on a guest's known-of stub, which has no edges out. An edge (GraphEdge) is {source, field, target, index}, one per element, field and target, from the schema's link fields and the two declared extension links (x_lens_leads_to, x_spine_depends_on); index is the target's place in the list as the reader is served it, and a link held on both ends is two edges. Nodes sort by id and edges by source, field and index, each by code point. Without lens the nodes are every element the reader sees less room elements, hidden ones, proposed ones and map space (Map, Pin, Marker, Zone); each flag brings its kind back, and cut counts what stayed out. With a lens (a body, or the id of one the reader sees) the nodes are exactly the lens's kept, its cut rides along unchanged, and no flag adds to it; a lens whose x_lens cannot be read gives an empty graph with unreadable naming the key, as resolve_lens does (unreadable is None otherwise, and always without a lens). A link to an element that is not a node is counted in edges_cut by that element's reason (a lens's cut reason; with a lens, outside_lens for one the reader sees that the lens neither kept nor cut, counted for every rung and never part of a lens's cut; without one, one of the four kinds; or not_visible), in one order: the lens's reasons, then room, hidden, proposed, map_space, outside_lens; a reader that is not the owner never carries anchor_not_visible, not_visible, hidden or proposed, and a link to an id not in the world is not counted. hidden or proposed from a reader that is not the owner, or any flag from a public reader, raises ValueError naming the flag before anything is read; an owner reading as another reader is judged by that reader's rung. It answers the 34 cases of the fixture's graph kind (schema-dist serial 81), which the npm SDK runs too; the answers equal the npm SDK's worldGraph on thousands of random worlds.
Schema repinned to schema-dist v0.33.0-dist.81 (from dist.80; the same canonical 00.33.00, so SCHEMA_VERSION stays and no element field moved). Serial 81 writes the lens profile's graph section, which world_graph reads, and the fixture's graph kind: the graph tests now run its 34 cases and read its graph tables back through the reader, in place of the package's own copy of the same cases.
counts rides every GET /world (keel PR 289): WORLD_READ_ONLY_FIELDS' comment said the keyless read alone; patch_world still never sends it.