Policy Tree
AirLane core abstraction: traffic → classifier → behavior → policy → exit. A four-layer model replacing Clash proxy groups.
The policy tree is what sets AirLane apart from traditional proxy clients: instead of a flat "proxy group + rule list" model, routing is split into layers — traffic, classifier, behavior, policy, exit — each doing exactly one job.

Policy overview (UI in Chinese)
The four-layer model#
| Layer | Question it answers | Examples |
|---|---|---|
| Traffic | What kind of traffic is this? | AI services, streaming, gaming, social |
| Classifier | How is it recognized? | Domain rulesets, process names, ports |
| Behavior | What to do once matched? | Route / Direct / Block / Reject |
| Policy | Which exit does it take? | Bound to an exit pool |
Full path of a connection: entry → classified → behavior decided → policy picks a pool → concrete exit → destination.
Classifiers#

Classifiers define what counts as a traffic type
Classifiers sort traffic by domain rulesets (GEOSITE, custom lists), process names, ports or IP ranges. Built-in categories cover AI services, streaming, ads and more.
Behaviors#

Behaviors: Route / Direct / Block / Reject / DNS
What happens to matched traffic: Route (hand to a policy), Direct (bypass proxy), Block (drop silently), Reject (refuse actively), DNS (DNS-level handling only).
Policies & exit pools#

One row = "traffic type → exit pool"
Each policy binds a traffic type to an exit pool. "AI services → US pool" and "Streaming → Germany pool" are two rows. Exit pools support several selector types:

Selectors: manual, auto url-test, load-balance…
- Manual: always use the node you picked.
- URL test: measure latency live, switch to the fastest.
- Load balance: spread traffic across nodes.
- Fallback: ordered failover when the primary dies.