The history dependence of the glasses formed from flow-melted steady states by a sudden cessation of the shear rateγ is studied in colloidal suspensions, by molecular dynamics simulations, and modecoupling theory. In an ideal glass, stresses relax only partially, leaving behind a finite persistent residual stress. For intermediate times, relaxation curves scale as a function ofγt, even though no flow is present. The macroscopic stress evolution is connected to a length scale of residual liquefaction displayed by microscopic mean-squared displacements. The theory describes this history dependence of glasses sharing the same thermodynamic state variables, but differing static properties.PACS numbers: 64.70. P-83.50.-v Materials are often produced by solidification from the melt, involving nonequilibrium quenches. This imprints a history-dependent microstructure that strongly affects macroscopic material properties. One example is residual stresses [1,2]: if particle configurations cannot fully relax to equilibrium, some of the stresses, arising in the presence of flow in the melt, persist in the solid.Small glass droplets (known as Prince Rupert's drops or Dutch tears since the 17th century) vividly display the effects of residual stresses [3]: they withstand the blow of a hammer onto their main body, but explode when the slightest damage is inflicted upon their tail (releasing the frozen-in stress network). Today, safety glass and "Gorilla glass" covers for smartphones are deliberately pre-stressed during production to strengthen them. A theoretical understanding of residual stresses and their microscopic origins is however still not achieved.We seek to understand generic mechanisms by which residual stresses arise. A convenient starting point is to investigate the stress relaxation σ(t) following the cessation of shear flow of rateγ, from a well-defined nonequilibrium stationary state (NESS). Such "mechanical quenches" are ubiquitous in soft matter, where pre-shear is applied to "rejuvenate" the otherwise ill-defined glassy state [4][5][6][7]. For these systems, the soft-glassy rheology model (SGR) [8] predicts asymptotic power laws that imply the relaxation of stresses to zero [9]. In the following, we will reserve the term residual stress to describe a finite, persistent stress remaining in the (ideal) glass even at arbitrarily large times after the cessation of flow.In addition to macroscopic rheology, we investigate the evolution of the microscopic dynamics as characterized by the waiting-time dependent mean-squared displacements (MSD). The latter reveal the dynamical shrinkage of shear-fluidized regions after cessation, and phenomena akin to, yet different from the intensely studied aging dynamics after thermal quenches [10,11].Experiments on a variety of colloidal suspensions, together with molecular-dynamics (MD) simulations, provide a coherent qualitative picture that can be rationalized by mode-coupling theory of the glass transition (MCT) [12] within the integration-through-transients (ITT) formalis...