Routing policy
Quotaflow routing has two separate decisions:
- Attribution: who the work belongs to.
- Execution: whether the request stays local or falls back to a Quotaflow team route.
The organization/payer must be accurate. The project can start as Unknown Project and be cleaned up later.
Resolver order
The MVP local connector resolves context in this order:
- Session override:
qf use personalor a temporary company hint fromqf use <workspace> - Local repo binding:
repo_fingerprint -> workspace/project - Git remote pattern
- Local directory pattern
- Personal/default
Only confirmed repo bindings enable team fallback. Session overrides and suggested matches are labels, not billing authority.
Planned policy extensions such as .quotaflow/context.json and company-managed device defaults should stay disabled until they can fail closed with tests.
Safe defaults
If the connector cannot decide:
- workspace: Personal
- project: Unknown Project
- confidence: default
- team fallback: disabled
This prevents accidental team charges.
Fallback eligibility
Automatic team fallback can happen only when all of these are true:
- repository context is a confirmed repo binding
- workspace type is company
- team policy allows fallback
- generation has not started
- the error is quota, rate limit, usage limit, capacity, or timeout-before-generation
The connector does not fallback for:
- auth failure
- forbidden or permission failure
- safety refusal
- invalid request
- model not found
- context too long
- tool permission denied
- unknown error
Headers and credentials
The fallback policy helper strips personal provider credentials from headers and JSON bodies before building a cloud fallback request. Quotaflow cloud should receive only the Quotaflow relay token and minimum routing context.
The current qfd proxy surface is still an MVP skeleton. Until your dashboard policy explicitly enables cloud fallback for a device/project, treat qf run as a context launcher and local audit helper, not as a global proxy for every provider request.
Dashboard policy
Use the dashboard to manage:
- workspace/project routing policy
- Unknown Project review
- fallback policy
- devices and sessions
- audit receipts
For usage concepts, see Personal vs Team usage.