In child custody disputes between parents, a petition for a writ of habeas corpus shifts focus from testing traditional illegal detention to determining the welfare of the minor. Ordinary habeas corpus proceedings question whether custody is strictly legal or illegal, but parent-versus-parent disputes involve competing and often equal claims of lawful guardianship. The threshold requirement for maintaining such a writ is met where one parent is wrongfully deprived of custody through the unilateral actions of the other parent. Once this threshold is crossed, the inquiry moves entirely beyond parental legal entitlements to focus on what best serves the child's overall well-being. Habeas corpus is used as an expeditious procedural device enabling the court to evaluate the minor's living conditions and psychological environment. The decision rests not on rigid legal entitlements of either parent, but on choosing the path that ensures healthy emotional and physical growth. (Vayu Kishore v. State of Karnataka & Ors. | 2026 INSC 1130)