key

abstract fun key(): String

A stable, comparable key identifying this locator.

Keys are prefixed by locator kind so that distinct kinds never collide (uri:..., file:..., content:..., connector:...), and distinct locators always render distinct keys — ConnectorRef escapes its connector id so free-text ids containing colons cannot blur the boundary between its two segments. Use this for deduplication, indexing, and reference equality rather than the display label.

Return

a stable key string for this locator