Skip to main content

Module resolve

Module resolve 

Source
Expand description

Spec name resolution for the --specs NAME[,NAME...] narrow flag.

Maps user-supplied names against the discovered SpecEntry set returned by scan_specs() using a layered matching strategy:

  1. Exact match on SpecEntry.id.
  2. Spec Kit feature-name match โ€” every SpecEntry.id whose feature prefix equals the requested name.
  3. Spec Kit numeric prefix match โ€” digit-leading values match a unique feature directory whose name starts with <digits> followed by a non-digit boundary. Ambiguous matches are rejected.

Resolution fails (no partial success) when any requested name is unknown or matches more than one feature ambiguously.

Functionsยง

resolve_specs
Resolves the --specs NAME[,NAME...] values against the discovered set.