# Archon Workflow Router Name Resolution and Fallback Logic Explained

> Understand Archon workflow router name resolution and its four-tier fallback logic: exact match, case-insensitive, suffix, and substring. Learn how Archon finds your workflows.

- Repository: [Cole Medin/Archon](https://github.com/coleam00/Archon)
- Tags: deep-dive
- Published: 2026-04-10

---

**Archon resolves workflow names through a deterministic four‑tier fallback hierarchy—exact match, case‑insensitive match, suffix match, and substring match—implemented in [`packages/workflows/src/router.ts`](https://github.com/coleam00/Archon/blob/main/packages/workflows/src/router.ts).**

The `coleam00/Archon` repository implements a sophisticated routing layer that maps user‑provided workflow identifiers to actual workflow definitions. Understanding this **workflow router name resolution and fallback logic** is essential for developers extending the system or troubleshooting routing failures.

## Four-Tier Fallback Hierarchy

The `resolveWorkflowName` function in [`packages/workflows/src/router.ts`](https://github.com/coleam00/Archon/blob/main/packages/workflows/src/router.ts) (lines 27‑