-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Context
PR #40 implements FAIRVISOR_MODE=wrapper (dedicated wrapper mode). Spec 019 also specifies a hybrid mode where the edge runs both decision enforcement AND LLM proxy routing simultaneously: requests to known provider prefixes (/openai, /anthropic, etc.) are handled by wrapper.access_handler(); all other requests fall through to decision_api.access_handler().
This was scoped out of PR #40 to keep the initial implementation focused. Tracked here per agreed scope cut.
What needs to change
src/nginx/access.lua: whenmode == "hybrid", callwrapper.get_provider(path)— if a provider matches, callwrapper.access_handler(); otherwise fall through todecision_api.access_handler()docker/entrypoint.sh: addhybridto allowedFAIRVISOR_MODEvaluesbin/ci/validate_nginx_template.sh: test withFAIRVISOR_MODE=hybridas well- BDD scenario: hybrid mode routes
/openai/...through wrapper and/v1/decisionthrough decision_api
Acceptance criteria
-
FAIRVISOR_MODE=hybridaccepted by entrypoint.sh -
/openai/*requests in hybrid mode hitwrapper.access_handler() - Non-provider paths in hybrid mode hit
decision_api.access_handler() - Unit test coverage
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request