Skip to content

perf: add authorization-tested broad topology query fast path #263

Description

@LiranCohen

Problem

Full reconciliation is now paginated, globally bounded, and uses eight deterministic workers, but role-scoped reads still require one member-node query per member and nodeInfo/endpoint queries per node. This is safe but O(N) HTTP requests.

A broad root-context query could collapse the rebuild substantially, but local tests do not prove descendant completeness or authorization behavior for author, protocol-role, plain-grant, and delegated-grant modes. Shipping an assumed broad filter would risk silently incomplete maps.

Acceptance criteria

  • deployed-DWN integration tests prove root-context descendant semantics
  • authorization matrix covers author, protocol role, plain grant, and delegated grant
  • broad result is locally validated by protocol path, parent/context chain, and network root
  • unsupported/unauthorized modes use the current bounded parent-query fallback
  • request count and latency tests demonstrate the fast path without weakening reconciliation bounds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions