One of the most notorious non-Fermi-liquid properties of both archetypal heavy-fermion systems 1-4 and the high-T c copper oxide superconductors 5 is an electrical resistivity that evolves linearly (rather than quadratically) with temperature, T . In the heavy-fermion superconductor CeCoIn 5 (ref. 6), this linear behaviour was one of the first indications of the presence of a zero-temperature instability, or quantum critical point. Here, we report the observation of a unique control parameter of T -linear scattering in CeCoIn 5 , found through systematic chemical substitutions of both magnetic and non-magnetic rareearth, R, ions into the Ce sublattice. We find that the evolution of inelastic scattering in Ce 1−x R x CoIn 5 is strongly dependent on the f -electron configuration of the R ion, whereas two other key properties-Cooper-pair breaking and Kondo-lattice coherence-are not. Thus, T -linear resistivity in CeCoIn 5 is intimately related to the nature of incoherent scattering centres in the Kondo lattice, which provides insight into the anomalous scattering rate synonymous with quantum criticality 7 . Although recent theories 4,[8][9][10] provide possible routes to an explanation of T-linear resistivity-found in both f -electron systems (for example, Y 1−x U x Pd 3 (ref. [1][2][3][4]6 , its coexistence with conventional (T 2 ) Hall-angle scattering 11,12 and its inconsistency with oneparameter scaling 13 . Most recently, its observation over three decades of T at the field-tuned quantum critical point (QCP) of CeCoIn 5 has been linked to a violation of the Wiedemann-Franz law 14 , an indication that this scattering rate is associated with the failure of Fermi-liquid theory in its most basic form.Here, we present a rigorous study of the effects of rare-earth substitution on three closely related features of the exotic metal CeCoIn 5 : unconventional superconductivity, Kondo-lattice coherence and anomalous charge-carrier scattering. By diluting the Ce lattice within high-quality single-crystal specimens of Ce 1−x R x CoIn 5 with both non-magnetic (full or empty 4f -shell) and stable-4f -moment substituent ions of varying size and electronic configuration, we are able to inject both 'Kondo holes' (isoelectronic ions without magnetic moments) and strongly localized magnetic moments into the coherent Kondo lattice. This has allowed us to probe the spin exchange between the Ce 3+ localized magnetic moments and the spins of the conduction electrons involved in Cooper pairing, Kondo screening and anomalous transport in a controlled way, revealing a surprising contrast between the response of coherent phenomena and non-Fermi-liquid behaviour to this perturbation. Figure 1 shows the evolution of both the superconducting transition temperature T c (identified by the transition in resistivity, ρ) and Kondo-lattice coherence temperature T coh (identified by the maximum in ρ(T )) for all rare-earth substitutions made in Ce 1−x R x CoIn 5 through the complete range of concentrations where both features exist. As shown, the...