Skip to content

fix(ai): the gateway has no route for the Jev Decisions API #4289

Closed

Description

@dan-petty

Problem or Motivation

Every Jev call of src/devops_cli/ai/jev.py (PR #4275) fails when the model is served through the LLM gateway. Evidence from a live check on 2026-11-09, through a port-forward to svc/llm-gateway, with the gateway key and no other credential:

  • SystemOneModel posts to {ai.gateway_url}/systemone. POST /v1/systemone on the gateway answered HTTP 404 {"detail":"Not Found"}. The OpenAPI document of the gateway (637 paths) lists no systemone and no decisions path.
  • POST /v1/chat/completions with the model typesafe/jev-1.14 answered HTTP 400. The text came from OpenRouter through LiteLLM: "typesafe/jev-1.14 is a decisions model and cannot be used with the chat/completions endpoint. Use the /api/alpha/decisions endpoint instead."
  • k8s/llm/gateway/config.yaml maps typesafe/jev-1.14 to openrouter/typesafe/jev-1.14, which LiteLLM serves only as a chat model. The gateway test of health passes because the model is listed, but no request of the Decisions protocol can pass.

So route_with_jev, judge_with_jev, gate_tool_call_with_jev, select_skill_with_jev and filter_rag_passages_with_jev cannot run live through the gateway. The planned uses of Jev in the roadmap Service (#4282, #4284) wait for this.

Expected

One route serves the Decisions protocol to the Service and to the CLI. A person decides which: (a) a pass-through in the gateway from /v1/systemone to the Decisions API of the provider, if the wire formats match (they are not proven to match: OpenRouter names /api/alpha/decisions, the pydantic-ai client uses /v1/systemone); (b) the TypeSafe API (CONST_URL_TYPESAFE_API_BASE) with its own key in the keyring and an egress rule; (c) drop Jev.

Acceptance criteria

  • A live check, for example uv run devops ai gateway probe-backend or a new probe, sends one DecisionRequest with one Noul question to Jev and gets an answer. Today it fails with HTTP 404.
  • uv run devops ci test tests/ai/test_jev_gateway_route.py passes. It checks that the route of the setting ai.gateway_url ends in a path that the configured server serves for SystemOneModel. It fails today.
  • docs name the route and the key.

Existing tool considered

LiteLLM has no System One route. pydantic-ai SystemOneProvider takes any base URL, so a pass-through or the direct TypeSafe API needs no new client.

Cost

A gateway change or a key is a host and secret change, so a person does it. The code change is small once the route exists.

Related

#4275, #4282, #4284.

Activity

  1. added
    source/agent
    type/bug
    scope/ai
    status/new
    value/medium
    effort/medium
    on Nov 9, 2026
  2. dan-petty commented on Nov 9, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ai. The (ai) scope of the title gives the scope.
    • Priority: P2-Medium. It blocks planned Jev features (#4282, #4284) but a direct API workaround exists.
    • Value: Medium. It unblocks five Jev functions and two roadmap items that depend on the Decisions protocol.
    • Effort: Medium. The code change is small, but it needs a key, an egress rule, and a person to choose the approach.
    • Related: feat(k8s): the LiteLLM gateway routes gemini-3.8-flash with its own API key and public egress on port 443 #3113, which asks for a different change. Both add a hosted model to the gateway config, but #3113 serves a chat model while this needs a Decisions protocol route.
  3. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 9, 2026
  4. removed
    status/in-review
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 01:00 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/aisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions