invalidateByTag

open suspend override fun invalidateByTag(tag: String, scope: String?): Int

Drops every entry carrying tag, optionally narrowed to scope.

As with remove, the graph nodes are left as stale waypoints and filtered on read; compaction reclaims them. Bulk invalidation is rare and rebuilding the graph on it would cost far more than the reads it saves.