14 Resource route overlap checks🔗ℹ

Interfaces reject overlapping generated URI matchers before serving or recovering work. This includes fixed resources overlapping templates, differently named variables describing the same route, and intersections created by mounts or URI remappings. The error includes a URI accepted by both routes. Locally known literal resource declarations receive the same check during expansion, with the error attached to the conflicting URI declaration.

uri-matchers-overlap in mcp/uri-template returns a witness string for intersecting generated matchers, false for disjoint generated matchers, or ’unknown when either matcher is a custom procedure. The search models both simple expansion syntax and UTF-8 validity. Its #:max-states keyword defaults to 10,000; exceeding the limit raises an error instead of claiming disjointness. Custom matchers are never invoked during this analysis. Runtime dispatch retains its ambiguity check for custom procedures whose accepted URI sets are unknown.