5d1a5f83da
Priority: --mode flag → NOVA_CLIENT_MODE env → credential type → TTY. No silent fallbacks: every return carries a non-empty selection_reason. - resolve_mode(flag, env_var, credential_type, stdin_isatty) -> (mode, reason) - resolve_mode_from_env() reads --mode from sys.argv (best-effort scan, no full argparse), NOVA_CLIENT_MODE, ~/.nova/credentials.json active credential type, and sys.stdin.isatty() (D-226: stdin, NOT stdout). - INV-13: invalid env values logged + ignored, fall through. - INV-14: developer_pat/nova_oidc_token + TTY → interactive; + no-TTY → agent. ---ci--- project: acdl phase: 1 milestone: v1.28 status: execute persona: cli-engineer ---/ci---