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
{{ message }}
Repository navigation
M2: Canonicalize web.endpoint URLs in canonicalize_url to prevent duplicate PIKs #89
web.endpoint URLs are canonicalized at the Primary Identity Key (PIK) boundary per ADR 0021 so http://192.0.2.10, http://192.0.2.10/, and http://192.0.2.10//api-docs/swagger.json resolve to a single deterministic web.endpoint Finding rather than minting duplicate nodes across adapters.
Acceptance criteria
canonicalize_url normalizes an empty root path ("") to "/" so root URLs with and without a trailing slash produce identical PIKs.
canonicalize_url collapses consecutive path slashes (// to /) and strips default scheme ports (:80 for http, :443 for https).
canonicalize_url remains idempotent and passes Hypothesis property tests and WebEndpoint PIK deduplication tests.
No duplicate web.endpoint nodes are created when ingesting http://192.0.2.10 and http://192.0.2.10/ into an in-memory Entity Graph.
Activity