International audienceContext-aware environments are being populated with Wireless Sensor Networks (WSNs), observing sensory context elements, and adapting their behavior accordingly. Although adaptation has been known as a common approach for addressing context-awareness, the resource-scarceness of WSNs raises the requirements for lightweight adaptations. The related work in the field of updating WSN applications mostly focuses on i) developing techniques to distribute a monolithic program to a set of nodes or ii) reprogramming the whole sensor nodes, which have been seen as impractical and inefficient solutions for a large number of sensors deployed in inaccessible regions. In this paper, we propose a new software development paradigm, wh...