A gas exchange framework was developed for miners, gallers and borers.
Risks of hypoxia and hypercarbia are higher in galls than in mines in general.
Cambium miners and borers are exposed to hypoxia and hypercarbia.
Temperature and ambient CO2 alter gas diffusion pathways interactively.
The eco-physiology of endophagous insects is still understudied.