Agentic Pattern Libraryby Vikas Goyal
← All patterns
74

Work-Type Routing

Also known as: shape per work type, adaptive workflow, pathway selection

Classify each piece of work by type and risk, then run it through the workflow agreed for that type.

TrackAI-native software delivery FamilyOperating model Maturity Emerging ChangesDecision
01

Problem

Teams often adopt one AI workflow for everything. A typo fix goes through a spec, plan approval and two reviews, while a risky billing change gets the same light touch as a UI tweak. A single workflow either slows simple work or under-protects risky work, and usually both.

  • Different work needs different rigor.
  • Choosing a workflow for every item takes time.
  • Too many workflows confuse people and agents.
  • Labelling risky work as simple is the costly mistake.
02

Solution

Agree a small set of work types, such as new feature, greenfield system and defect fix, and a shape for each: which stages run, how deep, who or what does each one, and which gates apply. Write the shapes in a file the agents read. When work arrives, an agent proposes its type and risk from the ticket, using a few attributes (how clear “done” is, how verifiable it is, its blast radius, how novel it is), and a person confirms with one click. The work then follows that shape. Paths such as auth and billing always move work to a stricter shape. Review the mix and any mislabels every month.

03

Diagram

Ticketnew work Agent proposestype + risk Path rules/billing · /auth → strict Personone-click confirm Feature shapespec · plan approval · AI review Gated defect shapefailing test · human merge Light defect shapeagent-led · auto checks overrides

Rigor follows the work. Simple fixes move fast, and anything touching risky paths is forced onto the strict shape.

04

When to use

Use it when

  • Teams with a varied mix of work
  • AI workflows that feel heavy for small items
  • Repos that mix low-risk and high-risk paths
  • Teams designing their own AI-native delivery process

Avoid it when

  • Teams doing essentially one kind of work
  • Very small teams where judgment per item is enough
  • Before basic tests and review gates exist
05

Trade-offs

Latency One classification step per item
Cost A cheap agent call per ticket
Complexity Shapes file, path rules, monthly review
Reliability Rigor matched to risk

Gains

  • Simple work isn't slowed by heavy process
  • Risky work always gets the strict path
  • A shared vocabulary for how the team works

Costs

  • Shapes need agreeing and maintaining
  • Misclassification risk if path rules are missing
  • Can drift into bureaucracy if confirmation isn't quick
06

Worked example

Scenario
The Linkwatch team defines three shapes, with path rules for billing and auth.
  1. Ticket A“Invoice totals round wrong.” The agent proposes defect fix; the /billing path rule raises blast radius to high, so it gets the gated shape: failing test first, human approves the merge.
  2. Ticket B“Add CSV export.” New feature shape: short spec, plan approval, AI first-pass review, then human review.
  3. Ticket C“Typo on settings page.” Light defect shape: agent-led, automated checks, quick review.
  4. Month 162% defect fixes, 30% features, 8% greenfield. Three tickets were mislabelled as light; a path rule is added so anything under /payments is high blast radius.
07

Failure modes

FailureSymptomMitigation
Risk mislabelledA risky change takes the light pathPath rules force the strict shape regardless of label
Too many shapesPeople can't remember which appliesCap at three to five shapes
BureaucracyClassification becomes a meetingThe agent proposes; a person confirms with one click
Frozen shapesShapes no longer match how the team worksReview the mix and mislabels monthly