Skip to content

Enforce CLI-only Jev transport instead of silently falling back to HTTPS #40

Closed

Description

@CompleteDotTech

Problem

Selecting “Always the jev CLI” does not enforce that choice. buildSetup selects HTTPS whenever a resolved key exists and CLI detection fails. This violates the explicit transport preference; Auto mode already provides the fallback choice.

Triage

  • Original finding: 1 of 11.
  • Priority: P1. Resolve before the next release because an explicit transport, session, or cost constraint can be violated.
  • Classification: Confirmed behavior/source defect.
  • Inspected current main: 3c2bb240059b3e1bec9264f1e57fa885096c6bf9 (2026-10-01).

Evidence

Offline reproduction on the inspected commit: policy jev_transport=cli, detectCli returns null, and a synthetic placeholder key is supplied. Router.status().transport.kind returns http. No provider request was sent.

Source: apps/desktop/src/main/engine/routing/router.ts:80, apps/desktop/src/renderer/components/SettingsDialog.tsx:173.

Acceptance criteria

  • CLI-only mode with a missing/unusable CLI returns an actionable unavailable state and uses the existing local heuristic for routing; it never selects HTTPS.
  • Auto mode still prefers CLI and falls back to HTTPS when eligible; HTTP-only mode skips CLI.
  • Cover all three modes with fake key resolution and CLI detection, including missing credentials.

Coordination and validation

Related issues: #41 (finding 2), #42 (finding 3), #47 (finding 8). These are coordination links, not hard blockers.

Recommended sequence: fix transport enforcement/setup invalidation and policy constraints first; coordinate draft testing/status and persistence semantics; then reorganize the UI and add advanced controls. Independent fixes may proceed without artificial dependencies.

Use offline fixtures/fake transports for automated checks. Coding turns remain CLI-only; do not launch live agents or weaken approval/sandbox behavior. Implementation PRs must use their own worktree, update docs/status.md as applicable, and run required build/unit/UI checks. This issue publishes scope and acceptance criteria; no production fix or live-provider verification is claimed.

Activity

  1. self-assigned this
    on Oct 2, 2026
  2. added a commit that references this issue on Oct 3, 2026
    d9414b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions